Your notation needs work. There is no = in the original so you cannot say y+2x=2xy+4x^2.

You seem to be saying y+2x is a factor but the answer must be of the form
(y+ax)(y+bx) where a & b must have the same sign (so that a*b = +4 is positive) and a+b = -4 so the sign must be minus.