No calculations involved - simply sort the elements by the given type.

I got an amazing 50 correct. In hindsight, I should have gotten them all, which means you can.