Tension in Brass wire (Fb): It supports only the bottom mass 2M, hence, Fb=2Mg
Tension in Steel wire (Fs): It supports both masses M and 2M, hence, Fs=Mg+2Mg=3Mg
FbFs=2Mg3Mg=23
ΔL=AYFL=πr2YFL
ΔLbΔLs=(FbFs)×(LbLs)×(rsrb)2×(YsYb)
ΔLbΔLs=(23)×(a)×(b1)2×(c1)
ΔLbΔLs=2b2c3a