A system of masses problem:

An elevator and its contents have a mass of 2000 kg. It is counterweighted by a piece of metal of mass 1700 kg that falls as the elevator rises. How much work must the motor do against gravitational forces to raise the elevator 30 meters?