A piston cylinder device contains 3 kg of air at 300 kPa and 25°C. During a quasiequilibrium isothermal expansion process, 20 kJ of boundary work is done by the system, and 8 kJ of paddlewheel work is done on the system. The heat transfer during this process is