connected by an inextensible string over a frictionless pulley