Step 1: Assign sign conventions.
Heat released by the system means \(q = -2\,\text{kJ}\).
Work done on the system means \(w = +6\,\text{kJ}\).
Step 2: Apply the first law of thermodynamics.
\[
\Delta H = q + w
\]
Step 3: Calculate enthalpy change.
\[
\Delta H = (-2) + 6 = -2\,\text{kJ}
\]
Step 4: Conclusion.
Hence, the enthalpy change of the system is \(-2\,\text{kJ}\).