Rút gọn:
\(A=\left[\left(\dfrac{3}{1+x}-\dfrac{x}{x^2+x+1}\right):\dfrac{2x^2+3x}{x+1}+\dfrac{3}{x+1}\right]\cdot\dfrac{x^2+x}{1+3x}\)
\(B=\left[\dfrac{a}{2a-6}-\dfrac{a^2}{a^2-9}+\dfrac{a}{2a-9}\cdot\left(\dfrac{3}{a}+\dfrac{1}{3-a}\right)\right]:\dfrac{a^2-5a-6}{18-2a^2}\)