Just got introduced to Hooke's law
Simple Q: Three light springs, each of natural length l and with spring constant k, are arranged vertically between two points a distance 3l apart. One end of the first spring is fixed to a point on the ceiling. A weight of mass m is connected between the other end of the first spring and the upper end of the second spring. Another weight of mass is attached between the second and third springs. The lower end of the third spring is attached to a point on the floor, directly below the original point on the ceiling. Find the equilibrium positions of the weights.
Let the upper weight be a distance $l + x_1$ below the ceiling and let the second weight be a distance $2l + x_2$ below the ceiling. Let us consider the forces acting on the upper weight:
$mg + k(x_2 -x_1) = kx_1$
$mg = k(x_2 -x_1) + kx_2$
before I go on with the solution I'm already confused.
Where did they get $x_2 - x_1 $ from? $T = k\delta l$ from hooke's law, but $\delta l$ is surely $x_1$ or $x_2$ where did they get $x_2 -x_1$ from?