Great question! Within a column / period, electronegativity increases as you go up. You can also look up the value of electronegativity for each element if you get a problem that is difficult to compare using the strategy I've shown here (for example, if the elements are diagonal to each other).