\(A=\frac{sin80}{cos80}\left(\frac{sin20}{cos20}+\frac{sin140}{cos140}\right)+\frac{sin140.sin20}{cos140.cos20}\)
\(=\frac{sin80}{cos80}\left(\frac{sin20.cos140+cos20.sin140}{cos20.cos140}\right)+\frac{\frac{1}{2}\left(cos120-cos160\right)}{cos20.cos140}\)
\(=\frac{sin80}{cos80}.\frac{sin160}{cos20.cos140}+\frac{cos120-cos160}{2cos20.cos140}\)
\(=\frac{2sin^280}{cos20.cos140}+\frac{cos120-cos160}{2cos20.cos140}=\frac{1-cos160}{cos20.cos140}+\frac{cos120-cos160}{2cos20.cos140}\)
\(=\frac{2-2cos160+cos120-cos160}{2cos20.cos140}=\frac{\frac{3}{2}-3cos160}{cos120+cos160}=\frac{-3\left(-\frac{1}{2}+cos160\right)}{-\frac{1}{2}+cos160}=-3\)