Solve for x -x^2+6x=x^2-2x