Xpower2 -15+50=0

Do you have a typo ?

Are we solving
x^2 - 15x + 50 = 0

then (x-10)(x-5) = 0
x = 10 or x = 5