Both would be fine, I prefer to the one that takes most energy first.
if you were writing the essay, I would start with the essay because it uses a lot of energy from your hand.
If you were typing it, I'd start with math because it uses your brain a bit more.
Honestly, I don't really get what you mean by using energy but that was my best.