\(Fe+2HCl\rightarrow FeCl_2+H_2\)
a_______________________a
\(Mg+2HCl\rightarrow MgCl_2+H_2\)
b________________________a
\(\Rightarrow a+b=\frac{4,48}{22,4}=0,2\left(mol\right)\)
\(2Fe+3Cl_2\rightarrow2FeCl_3\)
a______1,5a_________
\(Mg+Cl_2\rightarrow MgCl_2\)
b_______b________
\(\Rightarrow1,5a+b=\frac{5,6}{22,4}=0,25\left(mol\right)\)
\(\Rightarrow\left\{{}\begin{matrix}a+b=0,2\\1,5a+b=0,25\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}a=0,1\\b=0,1\end{matrix}\right.\)
\(\Rightarrow\%m_{Mg}=\frac{0,1.24}{0,1.56+0,1.24}.100\%=30\%\)