xについて整理
2x^2-(y+7)x-y^2+y+6
=2x^2-(y+7)x-(y+2)(y-3)
=(2x-y+3)(x+y+2)