\(A=\frac{sina+sin3a+sin2a}{cosa+cos3a+cos2a}=\frac{2sin2a.cosa+sin2a}{2cos2a.cosa+cos2a}=\frac{sin2a\left(2cosa+1\right)}{cos2a\left(2cosa+1\right)}=\frac{sin2a}{cos2a}=tan2a\)
\(B=\frac{sin^2a\left(1+tan^2a\right)}{cos^2a\left(1+cot^2a\right)}=\frac{sin^2a.\frac{1}{cos^2a}}{cos^2a.\frac{1}{sin^2a}}=\frac{sin^4a}{cos^4a}=tan^4a\)