A light spring of spring constant k is kept compressed between two blocks of masses m and M on a smooth horizontal surface . 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 speeds of the two blocks .