Solve PV = nRT for the number of moles of a gas.
Ideal gas law PV = nRT with R = 0.0821 L·atm/(mol·K); temperature in Kelvin.