Gas 'A' undergoes change from state 'X' to state 'Y'. In this process, the heat absorbed and work done by the gas is \( 10 \, \mathrm{J} \) and \( 18 \, \mathrm{J} \) respectively. Now gas is brought back to state 'X' by another process during which \( 6 \, \mathrm{J} \) of heat is evolved. In the reverse process of 'Y' to 'X',