Answer
Work done by the gas is $333.98J$.
Let:
$P$ = Pressure
$V$ = Volume
$P_i$ = Initial Pressure, $V_i$ = initial volume, $N$ is the number of particles of the gas, $K_B$ = Boltzmann's Constant.
$T=300K$ is the temperature.
Ideal gas law: $PV=NK_BT$
$Pa\hspace{1mm}m^3=J$
Work Step by Step
Finally, we have: