If-4 is a root of the equation x2+2x+4p=0, find the value of k for which the quadratic x2+k(2x+k+2)+p=0 are equal.