\(tanx=3\) \(\Leftrightarrow sinx=3cosx\)
\(A=\dfrac{2.3.cosx-3cosx}{4cosx+5.3cosx}=\dfrac{3cosx}{19cosx}=\dfrac{3}{19}\)
\(B=\dfrac{sin^2x-4sinxcosx+3cos^2x}{5-2sin^2x}\)
\(=\dfrac{\left(3cosx\right)^2-4.3cosx.cosx+3cos^2x}{5-2\left(3cosx\right)^2}\)
\(=\dfrac{9cos^2x-12cos^2x+3cos^2x}{5-18cos^2x}=0\)