\(a.Mg+2HCl->MgCl_2+H_2\\ Fe+2HCl->FeCl_2+H_2\\ b.Giả.sử:có:100g.dd.HCl\\ n_{HCl}=\dfrac{20\%.100}{36,5}=\dfrac{40}{73}mol\\ n_{Fe}=a;n_{Mg}=b\\ 2a+2b=\dfrac{40}{73}\\ BTKL:m_{ddsau}=56a+24b+100-2\left(a+b\right)=54a+22b+100\left(g\right)\\ C\%_{MgCl_2}=\dfrac{95b}{54a+22b+100}=\dfrac{11,787}{100}\\ -54a+783,97b=100\\ a=b=0,137\left(mol\right)\\ C\%FeCl_2=\dfrac{0,137\cdot127}{\dfrac{95\cdot0,137}{11,787\%}}\cdot100\%=15,757\%\)