a: \(P=\dfrac{15\sqrt{x}-11+\left(3\sqrt{x}-2\right)\left(\sqrt{x}+3\right)-\left(2\sqrt{x}+3\right)\left(\sqrt{x}-1\right)}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-1\right)}\)
\(=\dfrac{15\sqrt{x}-11+3x+7\sqrt{x}-6-2x-\sqrt{x}+3}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-1\right)}\)
\(=\dfrac{x+21\sqrt{x}-14}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-1\right)}\)
b: Khi x=9 thì \(P=\dfrac{9+21\cdot3-14}{\left(3+3\right)\left(3-1\right)}=\dfrac{29}{6}\)