\(n_{H_2}=0,5\left(mol\right)\)
\(Mg+2HCl-->MgCl_2+H_2\uparrow\)
x..........2x.........................x..............x
\(Fe+2HCl-->FeCl_2+H_2\uparrow\)
y........2y....................y....................y
\(\left\{{}\begin{matrix}24x+56y=20\\x+y=0,5\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}x=0,25\\y=0,25\end{matrix}\right.\)
\(m_{muoi}=m_{MgCl_2}+m_{FeCl_2}=0,25.95+0,25.127=55,5\left(g\right)\)