a) \(Mg+2HCl-->MgCl2+H2\)
x-----------------------------------------x(mol)
\(Fe+2HCl-->FeCl2+H2\)
y-------------------------------------y(mol)
\(n_{H2}=\frac{4,48}{22,4}=0,2\left(mol\right)\)
\(\left\{{}\begin{matrix}24x+56y=8\\x+y=0,2\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}x=0,1\\y=0,1\end{matrix}\right.\)
\(\%m_{Mg}=\frac{0,2.24}{8}.100\%=30\%\)
\(\%m_{Fe}=100-30=70\%\)
b) \(n_{HCl}=2n_{H2}=0,4\left(Mol\right)\)
\(m_{HCl}=0,4.36,5=14,6\left(g\right)\)
\(m_{ddHCl}=\frac{14,6.100}{15}=97,33\left(g\right)\)