\(B = \left( {\cos \frac{\pi }{9} + \cos \frac{{5\pi }}{9}} \right) + \cos \frac{{11\pi }}{9} = \left( {2\cos \frac{{\frac{\pi }{9} + \frac{{5\pi }}{9}}}{2}\cos \frac{{\frac{\pi }{9} - \frac{{5\pi }}{9}}}{2}} \right) + \cos \frac{{11\pi }}{9} = 2\cos \frac{\pi }{3}\cos \frac{{2\pi }}{9} + \cos \frac{{11\pi }}{9}\)
\( = \cos \frac{{2\pi }}{9} + \cos \frac{{11\pi }}{9} = 2\cos \frac{{\frac{{2\pi }}{9} + \frac{{11\pi }}{9}}}{2}\cos \frac{{\frac{{2\pi }}{9} - \frac{{11\pi }}{9}}}{2} = 2\cos \frac{{13\pi }}{{18}}\cos \frac{\pi }{2} = 0\)