Here's why:
* Calcium is in group 2 of the periodic table, meaning it loses two electrons to form a +2 cation (Ca²⁺).
* Fluorine is in group 17, meaning it gains one electron to form a -1 anion (F⁻).
* To balance the charges, two fluoride ions are needed for each calcium ion, resulting in the formula CaF₂.