Fe +2HCl---.--->FeCl2 +H2
x-----------------------x
Mg+2HCl----->MgCl2+H2
y------------------y
Ta có
m\(_{Fe}=56x\)
m\(_{Mg}=24y\)
m\(_{FeCl2}=127x\)
m\(_{MgCl2}=95y\)
Theo bài ra ta có hệ pt
\(\left\{{}\begin{matrix}56x+24y=8\\127x+95y=22,2\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}x=0,1\\y=0,1\end{matrix}\right.\)
%m\(_{Fe}=\frac{0,1.56}{8}.100\%=70\%\%=\)
%m\(_{Mg}=100-70=30\%\)