The correct option is A M1M2(l1−l2)+l1
Let the natural length of wire be l.
When only M1 is hanging, the external force acting on the wire is
F=M1g
Now using Hooke's law,
ΔL=FLAY
⇒(l1−l)=(M1g)lAY .........(1)
Here, Y= Young's modulus
A= cross-sectional area of wire
When both M1 and M2 are hanging, external force will be
Fext=(M1+M2)g
Again using formula of elastic constant
Δl=FextLAY
⇒(l2−l)=(M1+M2)glAY .....(2)
Here, l1 and l2 are length of wire when M1 and (M1+M2) are hanging.
From Eqs. (1) & (2),
l2−ll1−l=M1+M2M1
⇒M1l2−M1l=l1(M1+M2)−l(M1+M2)
⇒l=M1M2(l1−l2)+l1
So, option (a) is correct.