The 2.kg mass is heading toward a ramp-there’s no friction. Notice that at the top right there is a relaxed spring. The spring constant is 50 N/m. Calculate the maximum compression of the spring after the mass has risen up the ramp and hit the spring.

see other post.