when the polynomial is divided by x+1 and x+2, the reminders are -7 and -25 respectively. Find the remainder when P(x) is divided by (x+1)(x+2)

give google a try. First hit explores this topic

http://mathforum.org/library/drmath/view/56394.html