a: \(P=\left(2x-6\right)\left(\dfrac{2x+4\sqrt{x}-\sqrt{x}-2+4-2x-2\sqrt{x}}{2\left(x-4\right)}\right)\)
\(=\left(2x-6\right)\cdot\dfrac{\sqrt{x}+2}{2\left(x-4\right)}\)
\(=\dfrac{\left(x-3\right)}{\sqrt{x}-2}\)
b: Khi \(x=7-4\sqrt{3}\) thì \(P=\dfrac{7-4\sqrt{3}-3}{\sqrt{3}-2-2}=\dfrac{4-4\sqrt{3}}{\sqrt{3}-4}=\dfrac{-4+12\sqrt{3}}{13}\)