An ordinary Atwood's machine consists of a taut cord draped over a pulley, with a mass attached to the cord at each end.
The heavier mass (M) would win against the lighter mass (m), and draw it upward.