00-kg block is moving at 5.

a 5.00-kg block is moving at 5.00 m/s along a horizontal frictionlesssurface toward an ideal spring that is attached to a wall. After the block collides with thespring, the spring is compressed a maximum distance of 0.68 m. What is the speed of theblock when the spring is compressed to only one-half of the maximum distance