Two blocks of masses m1 and m2 are joined by a wire of Young’s modulus Y via a massless pulley. The area of cross-section of the wire is S and its length is L. When the system is released, increase in length of the wire is

(a) m1m2gL/YS(m1 + m2)
(b) 2m1m2gL/YS(m1 + m2)
(c) (m1 - m2)gL/Ys(m1 + m2)
(d) 4m1m2gL/YS(m1 + m2)