A 2.14 kg block resting on a frictionless surface is attached to an ideal spring with spring constant k = 252 Nm . The block is pushed to compress the spring by 9.08 cm from its equilibrium position. While the spring is being compressed, find (a) the work done by the spring and (b) the work done by the applied force.