2ab+2ay+bx+xy

Group the first two terms and the last two terms.

(2ab+2ay)+bx+xy

Factor out the greatest common factor (GCF) from each group.

2a(b+y)+x(b+y)

2a(b+y)+x(b+y)

Factor the polynomial by factoring out the greatest common factor, b+y.

(b+y)(2a+x)

Factor by Grouping 2ab+2ay+bx+xy