Find the velocities of two masses after they are launched by a spring