Mg can reduce NO3− to NH3 in basic solution:
NO3−+Mg(s)+H2O⟶Mg(OH)2(s)+OH−(aq.)+NH3(g)
A 25.0 mL sample of NO3− solution was treated with Mg. The NH3(g) was passed into 50 mL of 0.15 N HCl. The excess HCl required 32.10 mL of 0.10 M NaOH for its neutralization. What was the molarity of NO3− ions in the original sample?