Jonatan D. answered 03/29/21
High school tutor specialized in physics.
Since the two masses stick together after the collision, the collision is inelastic (the kinetic energy is not conserved). However, there are no external forces (gravity and the normal force cancel each other out) at the moment of collision, thus conserving momentum.
Mv0 = 2Mvx, with vx the speed of both masses after the collision, before going on the ramp.
After the collision, the only forces working on the system (the two masses together) are conservative (gravity and normal force, no frictional forces). This means no energy is converted into heat, sound or deformation, thus conserving mechanical energy (KE + PE = constant).
2Mvx2 / 2 = 2MvR2 / 2 + 2Mgh (see that you understand how I got to this equation! Let me know otherwise.)
Solve for vR and you get your solution.