Best financial approach: pay off debts, save for an emergency, save for retirement.
Step-by-step explanation:
It is better to pay off the debts and then the rest of the money must be kept safe for the emergency because it is not necessary that you will have an emergency condition, it can take place or cannot take place. Then, when these two criteria are full filled then the rest of the money should be kept for the retirement.
It will be irrational. The sum of any irrational and rational number will ALWAYS result in a irrational answer. Khan Academy has a video on this if you want to watch it.