Concept:
According to the First Law of Thermodynamics,
\[
\Delta U = Q - W
\]
where
\(Q\) = heat added to the system,
\(W\) = work done by the system.
Step 1: Substitute the given values.
\[
Q = 500\,\text{J}, \quad W = 200\,\text{J}
\]
\[
\Delta U = 500 - 200
\]
Step 2: Calculate the change in internal energy.
\[
\Delta U = 300\,\text{J}
\]