a) Ta có: \(B=\left(\dfrac{x}{3x-9}+\dfrac{2x-3}{3x-x^2}\right)\cdot\dfrac{3x^2-9x}{x^2+6x+9}\)
\(=\left(\dfrac{x}{3\left(x-3\right)}-\dfrac{2x-3}{x\left(x-3\right)}\right)\cdot\dfrac{3x\left(x-3\right)}{\left(x+3\right)^2}\)
\(=\left(\dfrac{x^2}{3x\left(x-3\right)}-\dfrac{3\left(2x-3\right)}{3x\left(x-3\right)}\right)\cdot\dfrac{3x\left(x-3\right)}{\left(x+3\right)^2}\)
\(=\dfrac{x^2-6x+9}{3x\left(x-3\right)}\cdot\dfrac{3x\left(x-3\right)}{\left(x+3\right)^2}\)
\(=\dfrac{x^2-6x+9}{x^2+6x+9}\)
b) Ta có: \(A=\left(\dfrac{x}{x^2-4}+\dfrac{2}{2-x}+\dfrac{1}{x+2}\right):\dfrac{1}{x+2}\)
\(=\left(\dfrac{x}{\left(x-2\right)\left(x+2\right)}-\dfrac{2}{x-2}+\dfrac{1}{x+2}\right):\dfrac{1}{x+2}\)
\(=\left(\dfrac{x}{\left(x-2\right)\left(x+2\right)}-\dfrac{2\left(x+2\right)}{\left(x-2\right)\left(x+2\right)}+\dfrac{x-2}{\left(x+2\right)\left(x-2\right)}\right):\dfrac{1}{x+2}\)
\(=\left(\dfrac{x-2x-4+x-2}{\left(x-2\right)\left(x+2\right)}\right):\dfrac{1}{x+2}\)
\(=\dfrac{-6}{\left(x-2\right)\left(x+2\right)}\cdot\dfrac{x+2}{1}\)
\(=\dfrac{-6}{x-2}\)