x^2+(5y+1)x+(3y+2)(2y-1)
=x^2+((3y+2)+(2y-1))x+(3y+2)(2y-1)
=(x+3y+2)(x+2y-1)