Instead of using the regular ideal gas equation, PV=nRT, we use a transformed version (D=PM/RT) to solve a problem with density and molar mass.