The balanced chemical equation is Mg+2HCl→MgCl2+H2.
The number of moles of magnesium are 4.4724.3=0.184 moles.
The number of moles of HCl are 2.00 M ×5.00×102mL1.00×103mL=1.00 moles.
The number of moles of HCl that react with 0.184 moles of Mg are 2×0.184=0.368 moles.
The number of unreacted moles of HCl is 1.00−0.368=0.632 moles.
The concentration of the acid solution after the metal has reacted is 0.6325.00×1021.00×103=1.264 M =1264×10−3 M.