Two weights of masses and are placed on a rotating bar. The weights are connected by a rope of length , as shown in the figure below, and can move freely on the crossbar without friction. At what distance of the first weight from the axis of rotation will the weights rest (they will not move along the bar)?