Given that $-1 - 4\sqrt{2}$ is a root of the equation \[x^3 + ax^2 + bx + 31 = 0\]and that $a$ and $b$ are rational numbers, compute $a.$

Let's think step by step and output the final answer within \boxed{}.
user