The internal energy of a system is
If q amount of heat is supplied to a system, the work done by the system is w. What is the change in internal energy of the system?