\(n_{H_2}=0,15\left(mol\right)\)
\(Mg+2HCl\rightarrow MgCl_2+H_2\)
a---------2a---------------------a
\(Fe+2HCl\rightarrow FeCl_2+H_2\)
b---------2b-------------------b
\(\Rightarrow\left\{{}\begin{matrix}24a+56b=5,2\\a+b=0,15\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}a=0,1\\b=0,05\end{matrix}\right.\)
\(\%m_{Mg}=\dfrac{24.0,1.100\%}{5,2}\simeq46,15\%\\ \%m_{Fe}=100\%-46,15\%=53,85\%\)
\(n_{HCl}=2.0,1+2.0,05=0,3\left(mol\right)\\ V_{HCl}=\dfrac{n}{C_M}=\dfrac{0,3}{1}=0,3\left(l\right)=300\left(ml\right)\)