Answer:
x = 0.105 meters
Step-by-step explanation:
It is given that,
A box slides from rest down a friction less ramp inclined at 34.0° with respect to the horizontal,

Spring constant of the spring,

Mass of the box, m = 12 kg
Th box slides 3 m from the point of release to the point where it comes to rest against the spring. We need to find the compression of the spring when the box comes to rest.
Let h is the height of the incline,

Using the conservation of energy in case of spring,



x = 0.105 meters
So, the compression of the spring is 0.105 meters. Hence, this is the required solution.