J.R. S. answered 08/31/21
Ph.D. University Professor with 10+ years Tutoring Experience
∆U = q + w
∆U = change in internal energy = -72 J
q = heat = ?
w = work = -54 J (negative because system is doing work on surroundings)
-72 J = q - 54 J
q = -18 J
∆U = q + w
∆U = ?
q = -38 J (negative because system releases heat)
w = +102 J (positive because work is done on the system by the surroundings)
∆U = -38 J + 102 J
∆U = 64 J