An ideal massless spring can be compressed 1 m by a force of 100 N. This same spring is placed at the bottom of a frictionless inclined plane which makes an angle θ=30∘ with the horizontal. A 10 kg mass is released from rest at the top of the incline and is brought to rest momentarily after compressing the spring 2 meters. (a) Through what distance does the mass slide before coming to rest?
(b) What is the speed of the mass just before it reaches the spring?