m1a1=-k(x1-x2+l)

m2a2=-k(x2-x1-l)

Can someone help me understand the notion of l? That is, for mass 1 is l positive because it is in the positive direction and vice-versa? I can solve it mathematically from there, but it makes me uncomfortable not fully understanding how the equations got set up.

Thanks in advance!