A cylinder fitted with a frictionless piston is filled with $10~\mathrm{mol}$ of gaseous carbon tetrachloride and immersed in a large bath of water maintained at $300~\mathrm{K}$. The volume of the gas is initially at $V_1~\mathrm{L}$, and the external pressure on the piston is slowly decreased until the volume reaches $V_2~\mathrm{L}$. Calculate the work for this process, in $\mathrm{kJ}$, assuming the gas can be treated as ideal.
I think I have the general idea of how to solve this problem but I'm not sure how to find the external pressure. So far, I'm using the equation
$$\int \mathrm{d}w = \int_{V_2}^{V_1}-p_{\mathrm{ext}}\,\mathrm{d}V$$
since it is pressure-volume work and have tried calculating $p_{\mathrm{ext}}$ using $pV=nRT$ and the final volume of the system, but this doesn't seem to give the correct answer. How does it have to be solved?