Given that x = -5 is a root to the quadratic 2x^2 + px - 15 = 0, and the quadratic equation p(x^2 + x) + k = 0 has equal roots, find k.