A system uses 49 J of energy to do work, and the change in internal energy is 58 J. How much heat was added to the system?