(b) The work is stored as the PE of the body and is given by,
$U = \int_{x_{1}}^{x_{2}}{F_{ext}\ dx}$
or $U = \int_{x_{1}}^{x_{2}}{kx\ dx}$
$= \frac{1}{2}k(x_{2}^{2} - x_{1}^{2})$
$= \frac{800}{2}\lbrack(0.15)^{2} - (0.05)^{2}\rbrack$
$\lbrack 0.02 - 0.002\rbrack\lbrack\therefore k = 800Ns^{- 1}\rbrack$
$= 400 \times \lbrack 0.2 \times 0.1\rbrack$
$= 8\ J$