ay-5by+5ax-25bx
Group the first two terms and the last two terms.
(ay-5by)+5ax-25bx
Factor out the greatest common factor (GCF) from each group.
y(a-5b)+5x(a-5b)
y(a-5b)+5x(a-5b)
Factor the polynomial by factoring out the greatest common factor, a-5b.
(a-5b)(y+5x)
Factor by Grouping ay-5by+5ax-25bx