Here is the proof they gave: Start with the statement $a = b$. Multiply both sides by $b$ to get $ab = b²$. Subtract $a²$ from both sides to get $ab − a² = b² − a²$. Factor the left and right sides of the equation to get $a(b − a)=(b − a)(b + a)$. Now divide both sides by $b − a$ to get $a = b + a$. Finally, let $a = b = 1$ in this final result to get the statement that $1 = 2$ but that is not true. What went wrong with the proof?
I'm not sure but is the error that you are not allowed to divide by $b-a$?