To solve this problem, it is necessary to apply the concepts related to the work done by a body when a certain distance is displaced and the conservation of energy when it is consumed in kinetic and potential energy mode in the final and initial state. The energy conservation equation is given by:

Where,
KE = Kinetic Energy (Initial and Final)
PE = Potential Energy (Initial and Final)
And the other hand we have the Work energy theorem given by

Where
W= Work
F = Force
D = displacement,
PART A) Using the conservation of momentum we can find the speed, so


The height at the end is 0m. Then replacing our values

Deleting the mass in both sides,

Re-arrange for find 




PART B) Applying the previous Energy Theorem,



Solving for d
