Write all the values of p for which the quadratic equation x2 +px+16=0 has equal roots. Find the roots of the equation so obtained