A piston-cylinder device contains a gas that undergoes a process where 50 kJ of heat is added to the system.
During this process, the gas expands and performs 20 kJ of work on the surroundings.
Assuming changes in kinetic and potential energy are negligible, what is the change in the internal energy of the gas?