Find the value of \(p\) for which the quadratic equation \((p+1)x^2 - 6(p+1)x + 3(p+9) = 0\), \(p \neq -1\) has equal roots.
 
Answer:  
 
The value of \(p\) is .