A sample of gas expands from an initial pressure and volume of $10 \mathrm{~Pa}$ and $1.0 \mathrm{~m}^{3}$ to a final volume of $2.0 \mathrm{~m}^{3} .$ During the expansion, the pressure and volume are related by the equation $p=a V^{2},$ where $a=10 \mathrm{~N} / \mathrm{m}^{8} .$ Determine the work done by the gas during this expansion.