
(a) When block strikes the spring, the kinetic energy of block converts into potential energy of spring ie,
$\frac{1}{2}mv^{2} = \frac{1}{2}kx^{2}$
Or $x = \sqrt{\frac{mv^{2}}{k}}$
$= \sqrt{\frac{25{\times 3}^{2}}{100}}\ \ \sqrt{\frac{9}{4}}\ = \frac{3}{2} = 1.5\ m$
When block returns to the original position, again potential energy converts into kinetic energy of the blocks, so velocity of the block is same as before but its sign changes as it goes to mean position.
$Hence\ v = - 3ms^{- 1}\ $