a) ĐK: x ≥ 0; x ≠ 9; x≠4
P= \(\left(\dfrac{\sqrt{x}+2}{\sqrt{x}-3}+\dfrac{3}{x-5\sqrt{x}+6}\right):\left(\dfrac{x+2}{\sqrt{x}-3}-\dfrac{x^2-\sqrt{x}-6}{\left(x-2\right)\left(\sqrt{x}-3\right)}\right)\)
= \(\left(\dfrac{\sqrt{x}+2}{\sqrt{x}-3}+\dfrac{3}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}\right):\left(\dfrac{x+2}{\sqrt{x}-3}-\dfrac{x^2-\sqrt{x}-6}{\left(x-2\right)\left(\sqrt{x}-3\right)}\right)\)
=\(\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-2\right)+3}{\left(\sqrt{x}-3\right)\left(\sqrt{x}-2\right)}:\dfrac{\left(x+2\right)\left(x-2\right)-x^2+\sqrt{x}+6}{\left(x-2\right)\left(\sqrt{x}-3\right)}\)
=\(\dfrac{x-4+3}{\left(\sqrt{x}-3\right)\left(\sqrt{x}-2\right)}:\dfrac{x^2-4-x^2+\sqrt{x}+6}{\left(x-2\right)\left(\sqrt{x}-3\right)}\)
=\(\dfrac{x-1}{\left(\sqrt{x}-3\right)\left(\sqrt{x}-2\right)}:\dfrac{\sqrt{x}+2}{\left(x-2\right)\left(\sqrt{x}-3\right)}\)
=\(\dfrac{x-1}{\left(\sqrt{x}-3\right)\left(\sqrt{x}-2\right)}.\dfrac{\left(x-2\right)\left(\sqrt{x}-3\right)}{\sqrt{x}+2}\)
=\(\dfrac{\left(x-1\right)\left(x-2\right)}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}\)
=\(\dfrac{x^2-3x+2}{x-4}\)
b) P ≤ -2
⇒ \(\dfrac{x^2-3x+2}{x-4}\) ≤ -2
⇔ \(\dfrac{x^2-3x+2}{x-4}\) + 2 ≤ 0
⇔ \(\dfrac{x^2-3x+2+2\left(x-4\right)}{x-4}\) ≤ 0
⇔ \(\dfrac{x^2-3x+2+2x-8}{x-4}\) ≤ 0
⇔\(\dfrac{x^2-x-6}{x-4}\) ≤ 0
⇔ \(\left[{}\begin{matrix}\left\{{}\begin{matrix}x^2-x-6\ge0\\x-4< 0\end{matrix}\right.\\\left\{{}\begin{matrix}x^2-x-6\le0\\x-4>0\end{matrix}\right.\end{matrix}\right.\)
⇔\(\left[{}\begin{matrix}x\le2\\3\le x< 4\end{matrix}\right.\)
Vậy.......