A gas sample in a piston assembly expands, doing 171 kJ of work on its surroundings at the same time that 242 kJ of energy is supplied to the gas as heat. What is the change in internal energy of the gas?