Solve equation, given below, using factorisation method:
x2−(a+b)x+ab=0
Solve the equation by factorization: x2-10x+21=0.