J.R. S. answered 09/22/21
Ph.D. University Professor with 10+ years Tutoring Experience
Let's first get our units the same. I'll convert cal to J
5.00x102 kcal x 4.184 kJ/kcal = 209 kJ
∆U = q + w
q = heat = -5.00x102 kJ (minus because heat was RELEASED)
w = work = +209 kJ (positive because work was done ON the system)
∆U = -500 kJ + 209 kJ
∆U = -291 J