For each of the following groups, indicate whether electrons are more likely to be lost or gained in compound formation and give the number of such electrons typically involved.
a. Group 1
b. Group 2
c. Group 13
d. Group 16
e. Group 17
f. Group 18