\(Mg+2HCl\rightarrow MgCl_2+H_2\)
x 2x x x
\(Fe+2HCl\rightarrow FeCl_2+H_2\)
y 2y y y
\(\left\{{}\begin{matrix}x+y=0,5\\24x+56y=23,2\end{matrix}\right.\)
\(\Leftrightarrow x=0,15;y=0,35\)
\(a,m_{Mg}=0,15.24=3,6\left(g\right)\)
\(m_{Fe}=19,6\left(g\right)\)
\(b,m_{HCl}=\left(0,3+0,7\right).36,5=36,5\left(g\right)\)
\(m_{ddHCl}=1,14.200=228\left(g\right)\)
\(C\%=\dfrac{36,5}{228}.100\%=16\%\)