I got this question in college and I am unsure how to approach it. Determine the variable a such that the following expression can be simplified:
$\frac{x^2-4x + a}{x-7}$
Usually with these problems, I am able to factor out something from the denominator, but that isn't possible here. Instead in the numerator, I tried just write $x^2+4x$ like $x(x+4)$, but I am unsure where to go from here. If $a$ was $4$, I could write $x^2+4x+a$ as $(x-2)^2$, but the problem is I am supposed to find out a. Does anyone have any ideas how I can proceed in finding a such that the expression may be simplified?

$$\frac{x^2-4x+a}{x-7}=\frac{(x-7)^2+10(x-7)+21+a}{x-7}$$
to simplify it , the $21+a$ should be zero ,so the value of $a$ is $$a=-21$$