it seems trivial if you quit trying to be clever and just write it down. i.e. the factors look like x^2 + ax + 1, and x^2 + bx + 1, or else
x^2 +ax-1 and x^2 +bx -1, and either way you get a+b = 0 and a+b = -22, right away.
does this check?
fourier jr, i think you are missing the point in your post. if not, then please just go ahead and "do it" for me. admittedly checking a quotient object is a ring is trivial, but not checking it is a field. you do not seem to understand the difference between a ring and a field.
I.e. it is not problem 1 anywhere. the difficulty is entirely proportional to the difficulty of checking irreducibility of the polynomial you are modding out.
there is a ridiculously impractical way to check irreducibility of any polynomial in the world, over the rationals, due i believe to kronecker.
i.e. you assume that f = gh, all with integer coefficients. then it follows that for every integer argument a, you have f(a) = g(a)h(a). now a polynomiloa of degree d is entirely determined by its value at d+1 points.
so you just pick any d+1 differen integers, (where d is an upper bound for the degree of the polynomials g,h) plug them all into f, and then factor them each all different ways into two factors, a finite but lnegthy process.
That gives a finite sequence of possibilities for the values of g,h at these d+1 points, and hncafints eqece of posbilities for g,h themselves.
then write down, via the lagrange interpolation formula, all possible polynomials g,h having these values. if they do not work, nothing will.
in the case above, using a = 0,1,-1, one has to write down all possible factorizations of the numbers 1, 20 and 24, already formidable by hand in the last two cases.
this factoring technique can be found in the great algebra book by van der waerden.