Ropes and Pulleys in Trees