J.R. S. answered 02/07/22
Ph.D. University Professor with 10+ years Tutoring Experience
∆U = q + w
∆U = change in internal energy = +966 J
q = heat = ?
w = work = +596 J (positive because work is done ON the system
966 J = q + 596 J
q = 966 J - 596 J
q = 370 J (positive because heat is add to the system; endothermic)