You factorize the quadratic funtion on the left.
x²-7x+10>0
(x-2)(x-5)>0
So the answer should be:
x<2 OR x>5