To answer this question, we have to remember that:
Then, if (r - 5) is a factor of the given polynomial, if we substitute r by 5, that is, r = 5, into the polynomial, and if the result is zero, then the factor (x - 5) is a factor of the polynomial.
Then we have that:
Now, we have to evaluate the polynomial for x = 5:
Since r = 5 is a root of the equation f(r) = 0, then (r - 5) is a factor of f(r).
In summary, (r - 5) is a factor of the given polynomial: