Start from the ideal gas law equation,
The number of moles can be written as the ratio between the weight of the gas, i.e. its mass, and its molecular mass.
This means that you can write
Density is defined as mass per unit of volume
Therefore, if you rearrange the equation, you obtain
As a result,
The gas could be carbon dioxide,