A carnot engine takes 3×106 cal of heat from a reservoir at 627oC, and gives it to a sink at 27oC. The work done by the engine is