The balanced equation for the reaction when hydrogen and nitrogen reacts with each other and Ammonia NH₃ is formed as a result is:
3H₂(g) + N₂(g) --> 2NH₃(g)
The equation shows when 3 moles of hydrogen reacts 2 moles of ammonia is formed.
3 moles of H₂……….2 moles of NH₃
So when there is 24 moles of hydrogen, no. of moles of NH₃ = 24 x 2/3 = 8 x 2 = 16 moles
Thus, 16 moles of NH₃ is formed.