A spring of force constant 800 N/m has an extension of 5 cm. The work done in extending it from 5 cm to 15 cm is
(a) 16 J
(b) 8 J
(c) 32 J
(d) 24 J