Subtracting both equations $$x(a-b)+b-a=0$$ $$(x-1)(a-b)=0$$ Since $a\not = b$ $$x=1$$ Substitution of x gives $$1+a+b=0$$ which is contradictory to the question. What did I do wrong?
There is a solution for this question that proves the required condition satisfactorily, but I want to the know reason behind this contradiction.
You assume that both equations have the same solution. This is not stated in the problem. Only the difference of the two solutions to each equation is identical.