An ionic compound has the general formula, XCl2. Element X comes from which group? Justify your answer with an explanation and provide an example.​