If 3 is root of the quadratic equation x2−x+k=0, find the value of p so that the roots of the equation x2+k(2x+k+2)+p=0 are equal.
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.