Concept:
If dividing by a quadratic, the remainder must be of degree less than 2.
So let the remainder be:
\[
R(x)=ax+b
\]
Factorize:
\[
x^2-x-12=(x+3)(x-4)
\]
Step 1: Use the given remainders.
By Remainder Theorem:
When divided by \(x+3\),
\[
P(-3)=-2
\]
So:
\[
R(-3)=-2
\]
\[
-3a+b=-2 \qquad ...(1)
\]
When divided by \(x-4\),
\[
P(4)=19
\]
So:
\[
R(4)=19
\]
\[
4a+b=19 \qquad ...(2)
\]
Step 2: Solve the equations.
Subtract (1) from (2):
\[
7a=21
\]
\[
a=3
\]
Substitute into (2):
\[
4(3)+b=19
\]
\[
12+b=19
\]
\[
b=7
\]
Step 3: Write the remainder.
\[
R(x)=3x+7
\]
Thus, the required answer is:
\[
\boxed{3x+7}
\]