Gọi $n_{Al} = a(mol) ; n_{Mg} = b(mol) \Rightarrow 27a + 24b = 7,8(1)$
$2Al +6HCl \to 2AlCl_3 + 3H_2$
$Mg + 2HCl \to MgCl_2 + H_2$
Theo PTHH : $n_{H_2} = 1,5a + b = \dfrac{8,96}{22,4} = 0,4(2)$
Từ (1)(2) suy ra a = 0,2 ; b = 0,1
$AlCl_3 + 3NaOH \to Al(OH)_3 + 3NaCl$
$MgCl_2 + 2NaOH \to Mg(OH)_2 + 2NaCl$
$Al(OH)_3 + NaOH \to NaAlO_2 + 2H_2O$
$Mg(OH)_2 \xrightarrow{t^o} MgO + H_2O$
$n_{MgO} = n_{Mg} = 0,1(mol)$
$m = 0,1.40 = 4(gam)$