The work done to compress a gas is 83.0 J. As a result, 27.0 J of heat is given off to the surroundings. Calculate the change in energy of the gas.