Let θ1, θ2 and θ3 be the temperatures of water in three containers.
1θ1+2θ2+0θ3=(1+2)60
θ1+2θ2=180 …. (1)
0×θ1+1×θ2+2×θ3=(1+2)30
θ2+2θ3=90 …… (2)
2×θ1+0×θ2+1×θ3=(2+1)60
2θ1+θ3=180 …. (3)
and θ1+θ2+θ3=(1+1+1)θ
from (1)+(2)+(3)
3θ1+3θ2+3θ3=450⟹θ1+θ2+θ3=150
from (4) equation 150=3θ⟹θ=50∘C