Gọi x, y là mol Mg, Fe.
$\Rightarrow 24x+56y=20$ (1)
$n_{H_2}=\dfrac{11,2}{22,4}=0,5 mol$
Bảo toàn e: $2x+2y=0,5.2=1$ (2)
(1)(2)$\Rightarrow x=y=0,25$
$n_{\text{muối clorua}}=n_{\text{kim loại}}$
$\Rightarrow m_{\text{muối}}=0,25.95+0,25.127=55,5g$
$\%m_{Mg}=\dfrac{24.0,25.100}{20}=30\%$
$\%m_{Fe}=70\%$