Elastic Strain Energy = (1/2)kx^2 where k is the spring constant and x is the extension to work out the extension do 20N100Nm−1=0.2m.
now we have our variables put them into the formula
(12)×100Nm−1×0.2m2=2J while it is a form of energy so the units are obviously Joules we can work it out that they are Joules our units in the equation are Nm^-1 * m^2 which simplifies to Nm which using the formula Work = Force * Distance and given Work has unit Joules then Newtons*Metres = Joules