Answer
Please see the work below.
Work Step by Step
We know that $BaCl_2$ can be separated by adding $SO_4^{-2}$ ion and precipitating $BaSO_4$ while leaving $MgCl_2$ in solution as it is soluble. After filtering the solution $BaSO_4$ will be separated.