In $IPv4$, classes are identified by the leading bits.
Leading bit $0\;\text{- class A}$. Network field size $=8\;\text{bits}$. Number of networks $=2^{8-1} = 2^7.$
Leading bits $10\;\text{- class B}$. Network field size $=16\;\text{bits}$. Number of networks $=2^{16-2} = 2^{14}.$
Leading bit $110\;\text{- class C}$. Network field size $=24\;\text{bits}$. Number of networks $=2^{24-3} = 2^{21}.$
So, $a=7,b=14,c=21$
$\implies 2a+3b+5c = 161.$