if the spring has a stiffness of -950nm-1,what work will be done in extending the spring by comm?

(1/2) k x^2 =energy stored = work done to store it

because
F= k x
work in = integral F dx = integral k x dx = (1/2) k x^2