Write the balanced equations for the following reactions, and add the state symbols :
(a) Magnesium carbonate reacts with hydrochloric acid to produce magnesium chloride, carbon dioxide and water.
(b) Sodium hydroxide reacts with sulphuric acid to produce sulphate and water