Hγ line in the Balmer series corresponds to transition from n=5 to n=2.
Therefore, electron in the ground state (n=1) must be raised first to the state (n=5).
The minimum energy required for this purpose is E=E5−E1 =−5213.6eV−(−1213.6eV) (As En=−n213.6eV) =−0.54eV+13.6eV=13.06eV