The densities of two gases, X and Y are 0.5gdm-3 and 2.0gdm-3 respectively. What is…