first you want to find the moles of hydrogen by dividing by Avogadro's number
9.42 x 10^24 / (6.022 x 10^23 atoms/mol) = 15.64 mol
then you can convert over to the moles of nitrogen using the ratio of atoms from the subscripts
15.64 mol H x 3 mol N / 9 mol H = 5.22 mol
finally then you can convert that over to grams by multiplying by the molar mass
5.22 mol N x (14.01 g/mol) = 73.05
meaning that this sample also contains 73.05 grams of nitrogen