Olympiad 2

A proton collides in-elastically with a hydrogen atom, given the energy loss how much energy did the proton have?

A proton makes a completely inelastic collision with a hydrogen atom which results in the hydrogens electron being excited from the ground level to energy E. Show that the energy of the proton before the collision was 2E.