An ideal gas is in contact with a heat reservoir to that it remains at a constant temperature of 300.0 K. The gas is compressed from 24.0 L to 14.0 L. The mechanical device that operating the piston to compress the gas expends 5.00 kJ of energy. How much heat flows between the gas and the heat reservoir?