$n_{NaHCO_3}=0,1 mol$
$n_{Ba(OH)_2}=0,5.0,1=0,05 mol$
$n_{BaCl_2}=0,1.0,5=0,05 mol$
$Ba(OH)_2+2NaHCO_3\to BaCO_3+Na_2CO_3+2H_2O$
$n_{BaCO_3}=n_{Na_2CO_3}=0,05 mol$
$BaCl_2+Na_2CO_3\to BaCO_3+2NaCl$
$\Rightarrow n_{BaCO_3}=n_{BaCl_2}=0,05 mol$
Các phản ứng vừa đủ
$\to m=197(0,05+0,05)=19,7g$