an inextensible string that connects two bodies of mass M and m