Let the velocity of the block at the time of collision is v.
The kinetic energy of the block is given as,
12mv2=12kx2+μkmgx
12×1×v2=12×2.75×(4)2+(0.25)×1×9.8×4
v2=63.6
v=7.975m/s
Thus, the speed of block at the instant of collision is 7.975m/s.