Explanation:
According to the ideal gas equation, PV = nRT.
So, V = [tex]\frac{nRT}{P}[/tex] ......... (1)
Since, it is given that volume of the gas is increases. So, change in volume will be as follows.
[tex]\Delta V = V_{f} - V_{i}[/tex]
Hence, equation (1) will become as follows.
[tex]\Delta V[/tex] = [tex]\frac{nRT_{f}}{P} - \frac{nRT_{i}}{P}[/tex]
[tex]P \Delta V[/tex] = nR[tex](T_{f} - T_{i})[/tex]
Therefore, work done on the gas will be given as follows.
W = - P [tex]\Delta V[/tex]
= [tex]-n \times R(T_{f} - T_{i})[/tex]
= [tex]- 0.0180 mol \times 8.31 atm L/mol K (340^{o}C - 18.5^{o}C)[/tex]
= 48.09 J
Thus, we can conclude that work done on the gas is 48.09 J.