a: \(P=x^2-5x+6\)
\(=x^2-2x-3x+6\)
\(=x\left(x-2\right)-3\left(x-2\right)\)
\(=\left(x-2\right)\left(x-3\right)\)
b: \(P=3x^2+14x-5\)
\(=3x^2+15x-x-5\)
\(=3x\left(x+5\right)-\left(x+5\right)\)
\(=\left(x+5\right)\left(3x-1\right)\)
c: \(P=-2x^2-7x-5\)
\(=-\left(2x^2+7x+5\right)\)
\(=-\left(2x^2+2x+5x+5\right)\)
\(=-\left[2x\left(x+1\right)+5\left(x+1\right)\right]\)
\(=-\left(x+1\right)\left(2x+5\right)\)