Question: how many electrons would each fluorine atom gain?
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.