Given H^2+14h=-31, let's complete the square of the 1st two terms:
h^2 + 14h + (14/2)^2 = -31 + (14/2)^2
h^2 + 14h + 49 = -31 + 49 = 18
(h+7)^2 = 18
Taking the sqrt of both sides,
h+7 = sqrt (9*2) = 3 sqrt(2)
Solving for h, h= -7 plus or minus 3 sqrt(2) (answer)