# If x=3 is a root of the equation xsquare -x+k=0, then find the value of p so that the roots of the equation xsquare + k (2x + k + 2) + p=0 are equal

3^2 -3 +k = 0

9-3+k=0

k= -6

sub k= -6 in x^2 +k(2x + k + 2) +p =0

x^2 -6(2x -6 +2) +p =0

x^2 -12x +24 +p =0

(-12)^2 -4(1)(24+p) =0

144-96 -4p =0

4p=48

p=12