The answer would be:
B. Chlorine, iodine and Fluorine
Barium has 2 valence electrons. To satisfy the BaX₂ , this would mean that Barium will need to give one of each of its electrons. The elements that need 1 electron would be those that have 7 valence electrons to complete the octet. These elements would fall in group 7 or halogens. Chlorine, iodine and fluorine are all in Group 7, so this would be the best choice.