Above, I found that
(a-c)=0
(a+b+3c-d)=0
(b+3d-8)=0
From the first equation, we have a=c. Since we have three equations and four unknowns, we have one degree of freedom, so we can rewrite all four coefficients a, b, c, and d in terms of a single variable. Let's choose that single variable to be a. (This is an arbitrary choice.) Solving the remaining two equations:
(4a+b-d)=0 → b=d-4a
(b+3d-8)=0 → d-4a+3d=8 → d=a+2
b=d-4a → b=-3a+2
Therefore,
f(x)=(x+1)(ax+b)-9=(x+1)(ax-3a+2)-9=ax2+(-2a+2)x-3a-7
f(x)=(x-3)(cx+d)-1=(x-3)(ax+a+2)-1=ax2+(-2a+2)x-3a-7
I didn't have to plug into both to find f(x), but since both forms result in the same f(x), I confirm that the solutions found are correct. Since we have determined it up to a constant, a, we have found all quadratic solutions of what you described in your problem.
Now you want the remainder, right? Divide through by (x+1)(x-3)=x2-2x-3.