A 2.0 kg mass is placed in front of a spring (K = 40 N/m) which has been compressed to its maximum of 20.0 cm.
(a)If the spring is released, determine the velocity of the mass at the instant that the spring is only compressed 10.0 cm.
(b) Determine the velocity of the mass the instant it leaves the spring.