Answer :
(a) All the elements in the same column as boron have the same number of valence electrons (3). Hence, they all have valency equal to 3.
(b) All the elements in the same column as fluorine have the same number of valence electrons (7). Hence, they all have valency equal to 1.