n1 and n2 moles of two ideal gases (mol. wt. M1 and M2) respectively at temperature T1K and T2K are mixed. Assuming that no loss of energy, the temperature of mixture becomes -
n1T1+n2T2n1+n2
Let the final temperature be T , then K E1 + K Emixture
32 n1RT1 + 32 n2RT2 = 32 (n1+n2) RT
T = n1T1+n2T2n1+n2