The correct option is D 34 g
According to the law of conservation of mass, the total mass of the products is equal to that of reactants, in a chemical reaction.
3H2(g)+N2(g)→2NH3(g)6 g 28 g X g
The mass of NH3 produced is equal to the sum of mass of hydrogen and nitrogen that reacted to give NH3.
Hence, the mass of NH3 = X g = 28 + 6 = 34 g.