Find the constant $c$ such that the limit of the following, exists.
$$\lim_{x\to 3} \frac{x^2+x+c}{x^2-5x+6}$$
What I've tried
So typically to find a limit, you substitute the number that x approaches, to find the limit, but given the above equation, that can't be done immediately as there are two asymptotes at 2 and 3 -as I know that the factoring of $(x^2 + -5x + 6)$ gives us $(x-2)(x-3)$, but from there, I'm fairly lost. Some help would be greatly appreciated.
In order for the limit to exist you need to get rid of the asymptote that occurs when $x=3$, caused by the denominator being $0$. As you know, you can factorise the denominator as
$$(x-2)(x-3)$$
Hence you only need to find the $c$ so that the $(x-3)$ term can be cancelled, since then the denominator will no longer become $0$ at $x=3$. Hence, find the constant $c$ so that
$x^2 + x + c$ has $x-3$ as a factor