For how many pairs of positive integers $(n, \space m)$ with $n, \space m < 100$ are both of the polynomials $x^2 + mx + n$ and $x^2 + mx - n$ factorable over the integers?
I have found four solutions: $$x^2 + 10x + 24$$ $$x^2 + 20x + 96$$ $$x^2 + 13x + 30$$ $$x^2 + 17x + 60$$
but I found these by trial and error.
I do not see how to systematically answer this question. Any help?