Mg (magnesium) reacts with acids and Produces magnesium salt and hydrogen gas as the products.
Followings are some balanced reactions of Mg with acids.
Mg(s) + H₂SO₄(aq) → MgSO₄(aq) + H₂(g)
Mg(s) + 2HCl(aq) → MgCl₂(aq) + H₂(g)
Mg(s) + 2HNO₃(aq) → Mg(NO₃)₂(aq) + H₂(g)