a: \(M=\dfrac{x+2\sqrt{x}-7-x-2\sqrt{x}+3}{x-9}:\dfrac{\sqrt{x}-1-\sqrt{x}-3}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-1\right)}\)
\(=\dfrac{4\sqrt{x}-4}{x-9}\cdot\dfrac{\left(\sqrt{x}+3\right)\left(\sqrt{x}-1\right)}{-4}\)
\(=-\dfrac{\left(\sqrt{x}-1\right)^2}{\sqrt{x}-3}\)
b: Để M=2 thì \(x-2\sqrt{x}+1=-2\left(\sqrt{x}-3\right)=-2\sqrt{x}+6\)
=>x=5