何を迷うんだ?
>5x(x+2y)+xy+2y^2
=5x^2+11xy+2y^2
=(5x+y)(x+2y)