The block is released from rest on the frictionless ramp. It compresses the

spring by 20cm before momentarily coming to rest. What is the initial distance d?
k=200N/m
m=3kg
angle=300 degrees
The picture looks somewhat like this :

(box is here)
/
/
(spring is here)/(angle)_____