If the amount of heat given to a system is 35 J and the amount of work done on the system is 15 J, then the change in internal energy of the system is
–50 J
30 J
20 J
50 J