The Interlock

A principle used in certain interlock systems is illustrated here. Mass $m$ slides on a vertical track attached to a base unit of mass $M$. The two masses are joined by a light cord, as shown. Mass $m$ is released from rest. Determine how long it takes to fall a distance $h$ to the base below.

Interlock

Source: Physics for Engineering and Science, by Michael Brown