Answer:
The distance of m2 from the ceiling is L1 +L2 + m1g/k1 + m2g/k1 + m2g/k2.
See attachment below for full solution
Step-by-step explanation:
This is so because the the attached mass m1 on the spring causes the first spring to stretch by a distance of m1g/k1 (hookes law). This plus the equilibrium lengtb of the spring gives the position of the mass m1 from the ceiling. The second mass mass m2 causes both springs 1 and 2 to stretch by an amout proportional to its weight just like above. The respective stretchings are m2g/k1 for spring 1 and m2g/k2 for spring 2. These plus the position of m1 and the equilibrium length of spring 2 L2 gives the distance of L2 from the ceiling.