When g(x) is divided by x^2-x-6, the remainder is x+5. What is the value of g(3)?

thank you!

Let g(x) = p(x)*(x^{2}-x-6) + R(x) where p(x) is some other polynomial and R(x)= x + 5.

When x = 3 g(3) = p(3)*(3^2-3-6) + (3+5) ie x^2-x-6 = 0, so all that is left of g(3) is 3 + 5. i.e. g(3) = 8.

thank you for your solution!