2x^2 - 7x + 5 = 0.
2x^2 - 2x - 5x + 5 = 0. (In any formula ax^2+bx+c, find two numbers, m and n, where m+n = b and m*n = a*c).
2x(x-1) - 5(x-1) = 0. (Step 2: Separate the equation in two, and find the Highest Common Factor (in these cases, 2x and 5, respectively. Make sure the expressions in brackets match!)
(x-1)(2x-5) = 0. (Finally, remove the in-brackets expression from both halves, and place what remains in it's own bracket.)
And there you have it.