How to determine the molecular formula based on molecular weight, amount of substance, and partial masses of some, but not all contained elements?
If you have $0.2\ \mathrm{mol}$ of a compound with $M_\mathrm{r}=82$, then you have $16.4\ \mathrm{g}$ of material. If there is only carbon, hydrogen and nitrogen present, and the carbon and hydrogen total up to $10.8\ \mathrm{g}$, then the amount of nitrogen must be $16.4\ \mathrm{g}-10.8\ \mathrm{g}=5.6\ \mathrm{g}$.