`ax^2 -3axy+ bx - 3by`
`= ax(x -3y) + b(x - 3y)`
`= (ax + b)(x - 3y)`
`2ax^3 + 6ax^2 + 6ax + 18a`
`= 2a (x^3 +3x^2 + 3x + 9)`
`= 2a [(x^3 +3x^2) + (3x + 9)]`
`= 2a [x^2 . (x +3) + 3(x + 3)]`
`= 2a(x^2 + 3)(x + 3) `
`ax - bx +cx - 3a +3b - 3c`
`= (ax - bx +cx) - (3a -3b + 3c)`
`= x(a - b +c) - 3(a -b + c)`
`= (x-3)(a-b+c)`
`ax - bx - 2cx - 2a + 2b + 4c`
`= (ax - bx - 2cx) - (2a - 2b - 4c) `
`= x (a-b-2c) - 2(a-b-2c) `
`= (x - 2 ) (a-b-2c)`
`ax^2 - bx^2 - 2ax + 2bx - 3a +3b`
`= (ax^2 - bx^2) - (2ax - 2bx) - (3a -3b)`
`= x^2 .(a - b) - 2x (a - b) - 3(a -b)`
`= (x^2 - 2x - 3)(a-b) `
`= (x-3) (x+1) (a+b) `