Which of the following transitions would produce a photon with the greatest energy? Why?

A) n = 1 → n = 5

B) n = 4 → n = 3

C) n = 5 → n = 2

D) n = 3 → n = 4

I don't even know where to start with this so if someone could explain this it would be helpful.