I think question meant : Find the work done in slowly pulling down the system by 8cm. Only then, I am getting the solution you had provided.
Let a1 and a2 be the extensions in the springs at equilibirum.
Start by drawing the FBDS:
m2g = k2a2 --- (1)
k1a1 = m1g + k2a2 --- (2)
a2 = 0.02m and a1 = 0.02m.
Let x1 and x2 be additional elongations causes by pulling m2 by L = 8cm. The additional forces on m1 are equal and are in opposite directions.
Thus you can infer that k1x1 = k2x2 --- (3)
Also, use the constraint x1 + x2 = L --- (4)
Solve (3) and (4) to obtain the values of x1 and x2 as 0.06m and 0.02m respectively.
Apply work energy theorem now. Initial and final kinetic energy is 0.
Wg + Wp + Ws = 0 --- (5) where Wp is the work done by pulling force.
Ws = U1 - U2 where U2 = 1/2 k1(a1 + x1)2 + 1/2 k2(a2 + x2)2
Put in the values, and you get Wp = 1.2 J.
By the way, if the above is not clear, you might want to refer "Concepts of Physics - H.C Verma). I remember seeing a quite similar problem in it long back.
cheers.