Explanation:
PbI2 is the precipitate.................
Solid Magnesium is considered as active metal so it reacts with strong acids like HCl and H₂SO₄ liberating Hydrogen gas according to the following equations:
Mg(s) + 2 HCl(aq) → MgCl₂(aq) + H₂(g)
Mg(s) + H₂SO₄(aq) → MgSO₄(aq) + H₂(g)
so the amount of solid magnesium decrease by addition of strong acid to it.