Let f(x)=x2+2(p−3)x+9.
As 6 lies between the roots of f(x)=0, we have D>0 and af(6)<0
(I) Consider D>0 (2(p−3))2−4.1.9>0
⇒(p−3)2−9>0⇒p(p−6)>0
⇒p∈(−∞,0)∪(6,∞)
(II) Consider af(6)<0 (36+12(p−3)+9)<0
⇒12p+9<0⇒p+34<0 ⇒p∈(−∞,−34)
Hence, the value of p satisfying both inequalities at the same time are p∈(−∞,−34).