Really, there isn’t too much new here other than the momentum principle. I expect you to know this in both of its forms (so I will not give you these two equations):
I will give you the definition of momentum along with the definition of the Earth-based gravitational force. So, here is what you will get:
I will also give you the quadratic equation.