An insulated rigid tank is divided into two compartments of different volumes.
Initially, each compartment contains the same ideal gas at identical pressure
but at different temperatures and masses. The wall separating the two
compartments is removed and the two gases are allowed to mix. Assuming
constant specific heats, find the simplest expression for the mixture
temperature written in the form $$T_{3}=f\left(\frac{m_{1}}{m_{3}},
\frac{m_{2}}{m_{3}}, T_{1}, T_{2}\right)$$ where \(m_{3}\) and \(T_{3}\) are the
mass and temperature of the final mixture, respectively.