A 1.0 kg block collides with a horizontal light spring of force constant 2 N/m. The block compresses the spring 4m from the rest position. Assuming that the coefficient of kinetic friction between the block and the horizontal surface is 0.25, what was the speed of the block at the instant of collision?
So let's see what is happening
K=2 N/m
X=4m
M=0.25
Assume block hits with velocity V m/s
The spring will compress till the point the block stops.
Also friction is acting all this while.
Applying work energy theorem:
(Only friction and spring forces are acting)
Wfr+Wsp=ΔKE