Three perfect gases at absolute temperatures are mixed. The masses of the molecules are and number of molecules are respectively. Assuming no loss of energy, the final temperature of the mixture is
Let and final temperature be T such that .
Heat lost by first two gases is equal to heat gained by third gas