what volume of 0.5m BaCl 2 is needed to have 0.1 moles of BaCl 2 ?

I assume you mean M and not m. M is molarity; m is molality.

M x L = mols.
0.5 M x L = 0.1 Solve for L