Air in a piston/cylinder arrangement is at 110 kPa, 25°C, with a volume of 50 L. It goes through a reversible polytropic process to a final state of 700 kPa, 500 K, and exchanges heat with the ambient at 25°C through a reversible device. Find the total work (including the external device) and the heat transfer from the ambient.