đk x khác 3 ; 4
\(P=\dfrac{2x+1-\left(x+3\right)\left(x-3\right)+\left(2x+1\right)\left(x-4\right)}{x^2-7x+12}\)
\(=\dfrac{2x+1-x^2+9+2x^2-7x-4}{x^2-7x+12}=\dfrac{x^2-5x+6}{x^2-7x+12}=\dfrac{\left(x-2\right)\left(x-3\right)}{\left(x-3\right)\left(x-4\right)}=\dfrac{x-2}{x-4}\)