What is the change in internal energy if 50 J of heat are released from a system, and the system does 80 J of work on its surroundings?