K (potassium) belongs to group IA of the periodic table, and has 1 valence electron. Br (bromine) belongs to VIIA, and has

valence electrons.