The hot and cold reservoirs of a Carnot engine have temperatures of 1010 and 291 K, respectively. The engine does the work of lifting a 21.1-kg block straight up from rest, so that at a height of 15.6 m the block has a speed of 7.47 m/s. How much heat must be put into the engine?

The answer is 5358.292308692629 J

So can anyone point me in the right direction? Thanks in advanced!