The first law of thermodynamics states:
\[
\Delta Q = \Delta U + \Delta W
\]
Where:
- \( \Delta Q \) is the heat added to the system,
- \( \Delta U \) is the change in internal energy,
- \( \Delta W \) is the work done by the system.
In the process from a to b:
\[
\Delta Q_{\text{ab}} = 20 \, \text{kJ}, \quad \Delta W_{\text{ab}} = 7.6 \, \text{kJ}
\]
So,
\[
\Delta U_{\text{ab}} = \Delta Q_{\text{ab}} - \Delta W_{\text{ab}} = 20 - 7.6 = 12.4 \, \text{kJ}
\]
In the process from b to a, since the work is done on the system:
\[
\Delta W_{\text{ba}} = -5 \, \text{kJ}
\]
Thus, the change in internal energy from b to a is:
\[
\Delta U_{\text{ba}} = \Delta U_{\text{ab}} = 12.4 \, \text{kJ}
\]
The total heat added in the process b to a is:
\[
\Delta Q_{\text{ba}} = \Delta U_{\text{ba}} - \Delta W_{\text{ba}} = 12.4 - (-5) = 12.4 + 5 = 17.5 \, \text{kJ}
\]
Since the system returns to its original state, this heat is rejected.
Thus, 17.5 kJ of heat is rejected by the system.