Consider the given polynomial.
⇒x3+x2−3x−P
Therefore, consider the division shown below.
If (x+3) completely divides x3+x2−3x−P, then
−9−P=0
P=−9