(a) As no work is done and system is thermally insulated from surrounding, it means sum of internal energy of gas in two partitions is constant ie, $U = U_{1} + U_{2}$
Assuming both gases have same degree of freedom, then
$U = \frac{f\left( n_{1} + n_{2} \right)RT}{2}$
and $U_{1} = \frac{fn_{1}RT_{1}}{2},\ \ U_{2} = \frac{fn_{2}RT_{2}}{2}$
Solving we get,
$T = \frac{\left( p_{1}V_{1} + p_{2}V_{2} \right)T_{1}T_{2}}{p_{1}V_{1}T_{2} + p_{2}V_{2}T_{1}}$