`3, 2(x+5)-x^2 - 5x`
`= 2(x+5) - x(x + 5)`
`= (2-x)(x+5)`
`6, x(x-y)+2x - 2y`
`= x(x-y) + 2(x-y)`
`=(x+2)(x-y)`
`9, x(x+y)- 3x-3y`
`= x(x+y)-3(x+y)`
`= (x-3)(x+y)`
`12, x(x+3y)- 5x - 15y`
`= x(x+3y)-5(x+3y)`
`= (x-5)(x+3y)`
`15, a(x+y) - 4x-4y`
`= a(x+y)-4(x+y)`
`=(a-4)(x+y)`
`18, 5(x-y)+ax-ay`
`= 5(x-y)+a(x-y)`
`=(5+a)(x-y)`