Answer
$(y+2)(y+x)$.
Work Step by Step
The given polynomial is
$=y^2+2x+yx+2y$
$=y^2+2y+yx+2x$
Group the terms.
$=(y^2+2y)+(yx+2x)$
Factor each group.
$=y(y+2)+x(y+2)$
Factor out $(y+2)$.
$=(y+2)(y+x)$
Hence, the factor of the given polynomial is $(y+2)(y+x)$.