\[\frac{(x + a)(x - 2)}{x - 5} = 0;\ \ \ \ x \neq 5\]
\[(x + a)(x - 2) = 0\ \]
\[x = - a\]
\[x = 2.\]
\[a = - 5 \Longrightarrow x = 2.\]
\[a \neq - 5 \Longrightarrow x = - a;\ \ \ \ x = 2.\]