Solving By Factoring

(x-8)(x-5)=x

Please show work!!!!

x^2 - 13x +40 = x

x^2 - 14x + 40 = 0
(x-10)(x-4) = 0
x = 10 or x = 4