\(n_{NaOH}=0,5mol\)
\(n_{H_2SO_4}=0,02mol\)
MgCl2+2NaOH\(\rightarrow\)Mg(OH)2+2NaCl(1)
2NaOH+H2SO4\(\rightarrow\)Na2SO4+2H2O(2)
\(n_{NaOH\left(2\right)}=2n_{H_2SO_4}=0,04mol\)
\(n_{NaOH\left(1\right)}=0,5-n_{NaOH\left(2\right)}=0,5-0,04=0,46mol\)
\(n_{Mg\left(OH\right)_2}=\dfrac{1}{2}n_{NaOH\left(1\right)}=\dfrac{1}{2}.0,46=0,23mol\)
\(m_{Mg\left(OH\right)_2}=0,23.58=13,34g\)