Question

As shown in the figure, a 1.5-kg box is held at rest against a
spring with a force constant k = 690 N/m that is compressed a
distance d. When the box is released, it slides across a surface
that is frictionless, except for a rough patch that has a
coefficient of kinetic friction ?k = 0.40 and is 6.0 cm in length.
If the speed of the box is 2.6 m/s after sliding across the rough
patch, determine the initial compression d of the spring.