Question: how many electrons would fluorine need to gain in order?
Answer: In the case of nonmetals such as fluorine, which has seven electrons in the outermost energy level, a more stable state can be achieved by gaining one electron and filling up the outer energy level.