Final answer:
Nonmetals in groups 6A and 7A form anions with charges determined by subtracting 8 from the group number, resulting in 2- and 1- charges, respectively.
Step-by-step explanation:
The nonmetals in groups 6A and 7A have a numerical charge that is found by subtracting 8 from the group number. This reflects their tendency to gain electrons to achieve the electron configuration of the next noble gas, resulting in the formation of negatively charged ions or anions. Specifically, Group 15 elements form 3- ions, Group 16 elements, like oxygen, form 2- ions, and Group 17 elements, known as halogens, like chlorine, form 1- ions.