Out of a pair of identical springs of spring constants 240 N/m, one is compressed by 10 cm and other is stretched by 10 cm. The difference in P.E. stored in the two springs is:
Zero
In both cases the P.E. will be kx2/2.
Hence. the difference of energies will be zero.