Gọi a là số mol Mg
Ta có
\(n_{Al}:n_{Mg}=2:1\Rightarrow n_{Al}=2a\left(mol\right)\)
\(27.2a+24a=7,8\)
\(\Rightarrow a=0,1\left(mol\right)\)
\(\Rightarrow n_{Mg}=0,1\left(mol\right)\)
\(n_{AL}=0,2\left(mol\right)\)
\(m_{Mg}=0,1.24=2,4\left(g\right)\)
\(m_{Al}=0,2.27=5,4\left(g\right)\)