✔ 最佳答案
1. first thy to factorise based on x and y.
ax + 2ay + 5x + 10y ===> x (a + 5) + y (2a + 10)
then you will notice that there is also another 2 which can be factorised in the y group.
x (a + 5) + y (2a +10) ====> x (a + 5) + 2y (a + 5)
now if you have noticed you can factorise (a + 5)
x (a + 5) + 2y (a + 5) ===> (a + 5) (x + 2y)
2. in this case first factorise x from x^2 and -3x
x^2 - 3x + 4x - 12 ===> x (x - 3) + 4x - 12
then factorise 4 from +4x and -12
x (x - 3) + 4x - 12 ===> x (x - 3) + 4 (x - 3)
now you can see that you can factorise (x - 3)
x (x - 3) + 4 (x - 3) ===> (x - 3) (x + 4)
Hint : to solve these sort of problems, the best is to try to find common relation between them, then group them based on their common relation and factorise on that bases.
I hope it helped.:)