how to find temperature using density and molar mass

Flexi Says:
Recall that density is defined as the mass per unit volume of a substance. Since gases all occupy the same volume on a per mole basis, the density of a particular gas is dependent on its molar mass (M). We can rearrange the ideal gas equation and substitute density (d) for mass/volume (m/V) to solve for temperature:
P×V=n×R×T
P=nVRT=mV× MRT=dMRT
T=P×Md×R