Can someone please explain the relationship between the group number, the number of valence electrons lost or gained, and the formula of the compound that results between Ca and F?