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 diagrm looks something like this:
(box is here) /
/ distance d
/
(spring) /(angle)______