hint:
Mechanical energy is conserved