The centre of mass of the system before the beginning of the motion lies on line OO (Fig.). According

to the definition of the centre of mass, the distance l1 and l2 of the trucks to the centre of mass at any time l should be inversely proportional to their masses, i.e.,

The velocity acquired by the trucks as a result of the action of the compressed spring is, by Newton's second law, given by

The distance of the trucks from line 00 satisfies the same relation as the distances to the centre of gravity of the trucks, i.e., the centre of gravity of the trucks always remains on line 00.
The same result may also be obtained directly from the law of conservation of momentum, which in our case gives
