3x²+5xy-2y²+x+9y-4
=3x²+5xy-2y²+4x-3x+8y+y-4
=(x+2y)(3x-y)+4x+8y-3x+y-4
=(x+2y)(3x-y)+4(x+2y)-(3x-y+4)
=(x+2y)(3x-y+4)-(3x-y+4)
=(x+2y-1)(3x-y+4)
2x²+xy-y²-4x+5y-6
=(2x-y)(x+y)+2x-6x+2y+3y-6
=(2x-y)(x+y)+2(x+y)-3(2x-y)-6
=(2x-y)(x+y-3)+2(x+y-3)
=(2x-y+2)(x+y-3)