The correct option is A 3.03 g
According to the given reaction,
1 mole of Mg reacts with 2 moles of HCl.
24 g of Mg reacts with (2×36.5) g of HCl.
5 g of Mg will react with 2×36.524×5=15.20 g of HCl
But, there is only 6 g of HCl available to react with the 5 g of Mg. (given in the question)
Therefore, HCl will be the limiting reagent.
Similarly, (2×36.5) g of HCl reacts with 24 g of Mg.
6 g of HCl reacts with 242×36.5×6=1.97 g
Excess Mg = 5.00 - 1.97 g = 3.03 g