Step-by-step explanation:
The octet rule states that atoms tend to form compounds in ways that give them eight valence electrons and thus the electron configuration of a noble gas. ... Atoms of nonmetals tend to gain electrons in order to fill their outermost principal energy level with an octet.