\(n_{Al^{3+}}=0.02\cdot2=0.04\left(mol\right)\)
\(n_{SO_4^{2-}}=0.02\cdot3+0.02=0.08\left(mol\right)\)
\(n_{Ba^{2+}}=0.07\left(mol\right)\)
\(n_{OH^-}=0.07\cdot2=0.14\left(mol\right)\)
\(Ba^{2+}+SO_4^{2-}\rightarrow BaSO_4\)
\(0.07.......0.07............0.07\)
\(Al^{3+}+3OH^-\rightarrow Al\left(OH\right)_3\)
\(0.04......0.12...........0.04\)
\(Al\left(OH\right)_3+OH^-\rightarrow AlO_2^-+2H_2O\)
\(0.02..........0.14-0.12\)
\(m\downarrow=0.07\cdot233+\left(0.04-0.02\right)\cdot78=17.87\left(g\right)\)