Two flasks A and B have equal volumes. A is maintained at 300 K and B at 600 K. A contains H2 gas, and B has an equal mass of CO2 gas. Find the ratio of the total kinetic energy of gases in flask A to that of flask B.