If a sample of NH4NO3 contained 5.04 x 1022 hydrogen atoms, how many moles of NH4NO3 are in your sample?

5.04E22/6.02E23 = mols H atoms.

Mols NH4NO3 is 1/3 that.