Q.
A block of mass is released from the top of an inclined smooth surface as shown in figure. If spring constant of spring is and block comes to rest after compressing the spring by , then the distance travelled by block before it comes to rest is

Solution:
by solving
