J.R. S. answered 10/06/22
Ph.D. University Professor with 10+ years Tutoring Experience
First, let's convert kcal to kJ so we can work in the same units (or you could convert kJ to kcal)
375 kcal x 4.184 kJ / kcal = 1569 kJ of work done on the system
5.00x102 kJ of heat released
∆U = ∆E = q + w
q = heat = -500 kJ (negative because heat is released)
w = +1569 kJ (positive because work is done ON the system)
∆U = ∆E = -500 + 1569 = +1069 kJ