James M. answered 01/19/21
Master Physics Instructor who has a track record of success
This is a relatively easy problem once you know the formula for elastic potential energy and what the symbols [variables] in the formula mean. PEs = 1/2 kx2, where k represents the force constant [ how stiff the spring is] and has units of N/m and x is the physical distance the spring is being compressed or stretched in meters.
so PEs = 1/2(20)(.3)2 = 0.9 J , if you doubled x it would increase the PEs by a factor of 4 as x is being squared in the formula, so 0.9 x 4 = 3.6 J would be the PEs if spring stretch an additional 0.30 m.