Find the values of p for which the quadratic equation (p+1)x2−6(p+1)x+3(p+9)=0,p≠−1 has equal roots. Hence, find the roots of the equation.