A gas X diffuses twice as fast as gas Y. if the relative molecular mass…