Force required to stretch the spring 30 cm is 250 newtons.
\Therefore
N,
cm.
Hook
s law: 
Substitute
and
in above formula.

Force required to stretch the spring
units is
.
Substitute
in
.
.
Work done by the object in moving from
to
is
.
Find work done in stretching the spring from
cm to
cm.
Here
cm and
cm.
Substitute
cm ,
cm and
in integral formula of work done.
N-cm.
N-m.
Work done is
N-m.
Work done is
N-m.