The correct options are
B 14g of Nitrogen and 16 g of oxygen.
C 8 g of Helium and 2 g of hydrogen.
In the given options, we have 2g of H, 14 g of N, 16 g of O and 8 g of He.
The molar masses of H, N, O and He are 1, 14, 16 and 4 respectively (in grams).
Number of moles of H = 21=2
Number of moles of N = 1414=1
Number of moles of O = 1616=1
Number of moles of He = 84=2
Here, 14 g of N and 16 g of O have the same number of moles. Hence, they have the same number of atoms.
Also, 2 g of H and 8 g of He have the same number of moles. Hence, they have the same number of atoms.