I get nowhere with problems of the type

p(x) gives the remainder 3 when divided by (x+3), and the remainder 4 when divided by (x-6). What is the remainder when p(x) is divided by (x+3)(x-6)?

they say it's related to the factor theorem, but i don't make the connection..