How did you get from the fourth line to the fifth one?
Cancel out (a-b) on each side of the equation.