\(P=\left[\dfrac{x^2}{2x-9}\left(\dfrac{3}{x}-\dfrac{1}{x-3}\right)-\dfrac{x+6}{2\left(x-3\right)}\right]:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\left[\dfrac{x^2}{2x-9}\left(\dfrac{3\left(x-3\right)}{x\left(x-3\right)}-\dfrac{x}{x\left(x-3\right)}\right)-\dfrac{x+6}{2\left(x-3\right)}\right]:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\left[\dfrac{x^2}{2x-9}.\dfrac{3x-9-x}{x\left(x-3\right)}-\dfrac{x+6}{2\left(x-3\right)}\right]:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\left[\dfrac{x^2}{2x-9}.\dfrac{2x-9}{x\left(x-3\right)}-\dfrac{x+6}{2\left(x-3\right)}\right]:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\left[\dfrac{x^2.\left(2x-9\right)}{\left(2x-9\right)x\left(x-3\right)}-\dfrac{x+6}{2\left(x-3\right)}\right]:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\left[\dfrac{x}{x-3}-\dfrac{x+6}{2\left(x-3\right)}\right]:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\left[\dfrac{2x}{2\left(x-3\right)}-\dfrac{x+6}{2\left(x-3\right)}\right]:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\dfrac{2x-\left(x+6\right)}{2\left(x-3\right)}:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\dfrac{2x-x-6}{2\left(x-3\right)}:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\dfrac{x-6}{2\left(x-3\right)}:\dfrac{x+2}{2\left(x-3\right)}\)
\(\Leftrightarrow P=\dfrac{x-6}{2\left(x-3\right)}.\dfrac{2\left(x-3\right)}{x+2}\)
\(\Leftrightarrow P=\dfrac{\left(x-6\right).2\left(x-3\right)}{2\left(x-3\right).\left(x+2\right)}\)
\(\Leftrightarrow P=\dfrac{x-6}{x+2}\)