The wire are joined end-to-end, so they are in series combination, then total length of wire is given by
L=L1+L2...(1)
When the temperature is increase by Δθ, then its final length is given by using concept of linear expansion,
L′=L(1+αΔθ)...(2)
Using equation (1) and (2) for the series combination of wires, final length is given by
L′=L1′+L2′...(3)
⇒(L1+L2)(1+αeffΔθ)=L1(1+α1Δθ)+L2(1+α2Δθ)
⇒αeff=(L1+L2)L1α1+L2α2