Equilibrium in the reaction of barium with calcium chloride