Find the values 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. Hence find the roots of the equation.