Start by getting the moles of Cl in each,
No of moles of NaCl = molarityvolume = 30.300 = 0.90 mol NaCl
In Nacl there is 1 mol of Cl
Therefore 0.90 mol Cl-
No of moles of BaCl2 = molarityvolume = 40.200 = 0.80 mol BaCl2
In BaCl2 there is 2 mol of Cl-
Therefore 1.6 mol Cl-
Now add both amounts, 0.9 mol Cl- + 1.6 mol Cl- = 2.5 mol Cl-
Finally calculate the molarity
2.5 mol Cl-/0.5 l = 5 M
or 5 M of Cl-