Step 1: Split the expression into two groups
Group the first two terms and the last two terms.
ax + ay + bx + by = (ax + ay) + (bx + by)
Factorising method
For four terms, group the first two and the last two.
Detailed notes
Factor ax + ay + bx + by by grouping pairs that share common factors.
Group the first two terms and the last two terms.
Take out a from the first group and b from the second group.
Both parts now contain the same bracket, x + y.
The repeated bracket becomes one factor. The outside terms become the other factor.