The formula for the ideal gas law is PV = nRT. Manipulating the variables we get n = PV/RT.
so if the first container has a Kelvin temperature four times than the other container, n = PV/R(4T), then the ratio of the number of moles of gas in the first container compared to that in the second is 1/4.
following the kinetic energy of a molecule whcih is represented by squared speed = sqrt(3RT/M), the ratio of the average velocity of particles in the first container compared to that in the second is
squared speed = sqrt(3R(4T)/M)
squared speed = sqrt(12RT/M)
squared speed = 2sqrt(3RT/M)
2 times that of the other container