Đặt \(n_{Al}=x(mol);n_{Mg}=y(mol)\)
\(\Rightarrow 27x+24y=9,69(1)\\ n_{H_2}=\dfrac{11,9841}{22,4}=0,535(mol)\\ a,2Al+6HCl\to 2AlCl_3+3H_2\\ Mg+2HCl\to MgCl_2+H_2\\ \Rightarrow 1,5x+y=0,535(2)\\ (1)(2)\Rightarrow x=0,35(mol);y=0,01(mol)\\ b,\%_{Al}=\dfrac{0,35.27}{9,69}.100\%=97,52\%\\ \Rightarrow \%_{Mg}=100\%-97,52\%=2,48\%\)