A 4 kg block slides down a 30-degree incline. On the inclined plane and parallel

A 4 kg block slides down a 30-degree incline. On the inclined plane and parallel

A 4 kg block slides down a 30-degree incline. On the inclined plane and parallel to it, a spring with a recoil constant of 500 N/m has been placed, and its mission is to stop the block.
Knowing that when the movement starts, the distance between the block and the pier along the plane is 10 m, determine the maximum deformation of the spring. The coefficient of friction between the block and the plane is 0.2.