A 0.9 kg block is moving with speed 7 m/s towards a spring that has a spring constant of 1.3 N/m. The block hits the spring and compresses it.

a) How far did the block compress the spring?(draw a pie graph also)
b) When the block is still moving and the spring has been compressed only 3m, how fast is the block moving ?(draw a pie graph also)