Step 1: Apply the first law of thermodynamics.
The first law of thermodynamics states that:
\[
\Delta Q = \Delta U + \Delta W
\]
where \( \Delta Q \) is the heat absorbed, \( \Delta U \) is the change in internal energy, and \( \Delta W \) is the work done by the gas.
Step 2: Understand the energy changes.
In the process from ‘X’ to ‘Y’, heat absorbed \( \Delta Q = 10 \, \text{J} \), and work done \( \Delta W = 18 \, \text{J} \).
In the process from ‘Y’ to ‘X’, heat evolved \( \Delta Q = -6 \, \text{J} \).
Step 3: Work done in reverse process.
Using the first law again for the reverse process, the total energy change is zero, as the system returns to its original state:
\[
\Delta Q = \Delta U + \Delta W
\]
Substitute the values:
\[
-6 = \Delta U + \Delta W
\]
The change in internal energy, \( \Delta U \), remains the same in both processes, so:
\[
\Delta W = -12 \, \text{J}
\]
This indicates that 12 J of work is done on the gas by the surrounding.
Final Answer: (C) 12 J of the work is done on the gas ‘A’ by the surrounding.