Source: Challenge and Thrill of Pre-College Mathematics
"Find all integers $a$ such that
$$(x-a)(x-12)+2$$
can be factored into $(x-b)(x-c)$, such that $b$ and $c$ are integers."
My attempt: Simplifying the given polynomial and by the given condition, we get
$$x^2+(-12-a)x+(12a+2)=x^2-(b+c)x+ bc,$$ from where we obtain the system
$$b+c= (12+a)$$
$$bc= 12a+2$$
I can't proceed with the same process. A hint would be appreciated.

Hint: Using comment by MEEL, we have:
$(b-a)(b-12)=-2$
Following cases can be considered:
1): $b-12=-1\Rightarrow b=11\Rightarrow 11-a=2\Rightarrow a=9$
Similarly:
2): $b-12=-2 \Rightarrow b=10\Rightarrow 10-a=1\Rightarrow a=9$.
3): $b-12=2$, $b-a=1$
4): $b-12=1$, $b-a=-2$
These two cases give $a=15$