If (4x2−7x+12)−P=x2+2x−5, where P is a polynomial, what is polynomial P?
3x2−9x+17
5x2−5x+7
−3x2+9x−17
3x2−5x+7