a: \(=\dfrac{x-4+x-3\sqrt{x}+2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-1\right)}\cdot\dfrac{\left(\sqrt{x}-1\right)\left(2\sqrt{x}-1\right)}{1}\)
\(=\dfrac{2x-3\sqrt{x}-2}{\left(\sqrt{x}-2\right)}\cdot\dfrac{2\sqrt{x}-1}{1}\)
\(=\dfrac{2x-4\sqrt{x}+\sqrt{x}-2}{\left(\sqrt{x}-2\right)}\cdot\dfrac{2\sqrt{x}-1}{1}\)
=4x-1
b: Để P=2019 thì 4x=2020
=>x=505