For a certain polynomial, $P(3)=2$ and $P(-1)=-1$. Use this information to deduce the remainder when $P(x)$ is divided by $(x-3)(x+1)$.
I have tried to create a simultaneous equation with the division theorem, but I'm stuck. $$ P(x) = Q(x)(x-3) + 2 $$ and $$ P(x) = Q(x)(x+1) - 1 $$