first raise x to the 2nd power
x^2-34x-240=0
then simplify so
x^2-34x-240
put into brackets so
(x+6) (x-40) =0
x=-6, 40