How many electrons shouldthe atoms with the foollowing atomic numbers lose or gain for them to be stable.

Element Atomic Number Electrons gained/lost
P 8
Q 11
R 20
S 17