Find all values of the variable x for which the rational expression is undefined.

x+7(x5)(x2)\displaystyle \frac{{{x}+{7}}}{{{\left({x}-{5}\right)}{\left({x}-{2}\right)}}}

The expression is undefined when x=\displaystyle {x}=

If there is more than one answer, write it as a list, using commas to separate your answers.