Question

A child's toy consists of a spherical object of mass 50 g attached to a spring. One end of the spring is fixed to the side of the baby's crib

so that when the baby pulls on the toy and lets go, the object ocillates horizontally with a simple harmonic motion. The amplitude of the oscillation is 6 cm and the maximum velocity achieved by the toy is 3.2 m/s . What is the kinetic energy K of the toy when the spring is compressed 5 cm from its equilibrium position?

Fig: 1