What is the formula for the compound formed by barium ions and chloride ions?

The formula for the ionic compound barium chloride is BaCl2.