Let the original (natural) length of the wire be l0 and the cross-sectional area be A. When a tension T is applied, the extension is Δl=YATl0, where Y is Young's modulus.
When tension T1 is applied, the length becomes l1=l0+YAT1l0, which gives l1−l0=YAT1l0 ... (i).
When tension T2 is applied, the length becomes l2=l0+YAT2l0, which gives l2−l0=YAT2l0 ... (ii).
Dividing equation (i) by equation (ii): l2−l0l1−l0=T2T1.
Cross-multiplying: T2(l1−l0)=T1(l2−l0), which gives T2l1−T2l0=T1l2−T1l0. Rearranging: l0(T1−T2)=T1l2−T2l1, so l0=T1−T2T1l2−T2l1=T2−T1T2l1−T1l2.