If the temperature of the compartment 2 is η times more than that of compartment 1, it must contain 1/η times less number of molecules since pressure must be the same when the big hole is open. If M - mass of the gas in 1 than the mass of the gas in 2 must be M/η . So immediately after the big hole is closed.

where m = mass of each molecule and n01, n02 are concentrations in 1 and 2. After the big hole is closed the pressures will differ and concentration will become n1 and n2 where

