We have that (x2+2x+5)(x2+bx+c)=x4+Px2+Q.for some coefficients b and c. Expanding, we get x4+(b+2)x3+(2b+c+5)x2+(5b+2c)x+5c=x4+Px2+Q.Matching coefficients, we get b+22b+c+55b+2c5c=0,=P,=0,=Q.Solving b+2=0 and 5b+2c=0, we get b=−2 and c=5. Then P=2b+c+5=6 and Q=5c=25, so P+Q=31.