Answer :
the valency of elements which have 1or 2or 3or 4 number of electons in the valance shell is the same number as the no. of valance electrons.if the valance electrons are 5or6or7or8 it is eight -the number of valance electrons