How much work does an elevator motor do to lift a 1500 kg elevator to a height of 50 m?

(a) How much work does an elevator motor do to lift a 1500 kg elevator to a height of 50 m?
(b) How much power must the motor supply to do this in 40 s at constant speed?