\(Fe+2HCl\rightarrow FeCl_2+H_2\)
a a a
\(Mg+2HCl\rightarrow MgCl_2+H_2\)
b b b
Theo đề, ta có hệ phương trình:
\(\left\{{}\begin{matrix}56a+24b=8\\2a+2b=0.4\end{matrix}\right.\Leftrightarrow a=b=0.1\)
\(\%m_{Fe}=\dfrac{0.1\cdot56}{8}\cdot100\%=70\%\)
\(\%m_{Mg}=\dfrac{24\cdot0.1}{8}\cdot10\%=30\%\)