think of the less than and greater than signs as the mouth of an alligator, it will always open to eat the bigger one!
for example if you have 7 and 9 then the mouth of the gator will open to the bigger one so

get it? you already know the units, just figure out what's bigger and feed the gator!