a heat engine operates between a hot reservoir with a temperature of 400 k and a cold reservoir with a temperature of 300 k. the engine accepts 500 j of energy from the hot reservoir, does 150 j of work, and exhausts 350 j of energy into the cold reservoir.