The string is attached to block A, goes over the pulley, and is attached to block B. The length of the string from block A to the pulley is $h-y$ (where $y$ is the vertical distance block B has moved), and the length of the string from the pulley to block B is
Show more…