A box slides from rest down a frictionless ramp inclined at 31.0∘ with respect to the horizontal and is stopped at the bottom of the ramp by a spring with a spring constant of k = 3.00×104 N/m. If the box has a mass of 12.0 kg and slides 3.00 m from the point of release to the point where it comes to rest against the spring, determine the compression (in m ) of the spring when the box comes to rest.