The question can be explained by Graham's law of diffusion. According to this law, under the same conditions of temperature and pressure, the rate of diffusion of a gas is inversely proportional to the square root of its molar mass.
Rx
Ry
= √
My
Mx
From the question, Gas X diffuses twice as fast as gas Y i.e x = 2y