Hint: The total energy of the molecules depends on the temperature of the gas.
Step 1: Find the RMS speed and temperature of the gas in case 1.
(a) We know that,
This is the RMS speed for all molecules collectively.
Now,
Now, according to the kinetic theory of gasses,
[= Boltzmann constant, m = mass of gaseous molecules]
Step 2: Find the RMS speed and temperature of the gas in case 2.
(b) If all the molecules with speed 1000 m/s escape, then,
Again,