H2CO3 + Mg(OH)2 --> MgCO3 +H2O
Since the equation is balanced and the acid is the limiting reagent, we see from the equation that one mole of the acid produces one mole of water. Thus 17.8 moles of acid react with excess magnesium hydroxide to produce 17.8 moles of water