Let extension produced in a spring be x initially.
In stretched condition spring will have potential energy U=21kx2
Where k is spring constant or force constant, ∴U2U1=x22x12 ...(i)
Given, U1=U,x1=2cm,x2=8cm
Putting these values in Eq. (i), we have U2U=(8)2(2)2=644=161 ∴U2=16U