A moving 3.20 kg block collides with a horizontal spring whose spring constant is 224 N/m.

The block compresses the spring a maximum distance of 5.50 cm from its rest position. The coefficient of kinetic friction between the block and the horizontal surface is 0.490. What is the work done by the spring in bringing the block to rest?
How much mechanical energy is being dissipated by the force of friction while the block is being brought to rest by the spring?
What is the speed of the block when it hits the spring?

3 answers

mv²/2 = kx²/2 +μmgs
====
W(spring) = kx²/2=...
E(fr) = μmgs=...
v =sqrt{kx²/m +2μ gs}=...
it's still incorect.. can you explain it a bit more please?...
Thank you for all your help.
so 1 + 2 =4 right that means 3 + 7= 11