A light spring of spring constant k is kept compressed between two blocks of masses m and M on a smooth horizontal surface (figure) When released, the blocks acquire velocities in opposite directions. The spring loses contact with the blocks when it acquires natural length. If the spring was initially compressed through a distance x, find the final speed of mass m.

