x^2+50-5x=10x
x^2+50-15x=0
x^2-15x+50=0
(x-10)(x-5)=0
(x-10)=0 | (x-5)=0
x-10=0 | x-5 = 0
x = 10 | x = 5