To determine which equation has a solution of \(x = -7\), we can substitute \(-7\) into each equation and see if the equation holds true.
Option A: \(-3x - 8 = -29\)
Substituting \(x = -7\):
\[
-3(-7) - 8 = -29 \
21 - 8 = -29 \
13 \neq -29 \quad \text{(not true)}
\]
Option B: \(4x - 23 = 5\)
Substituting \(x = -7\):
\[
4(-7) - 23 = 5 \
-28 - 23 = 5 \
-51 \neq 5 \quad \text{(not true)}
\]
Option C: \(-x + 3 = -4\)
Substituting \(x = -7\):
\[
-(-7) + 3 = -4 \
7 + 3 = -4 \
10 \neq -4 \quad \text{(not true)}
\]
Option D: \(5x + 11 = -24\)
Substituting \(x = -7\):
\[
5(-7) + 11 = -24 \
-35 + 11 = -24 \
-24 = -24 \quad \text{(true)}
\]
The correct answer is D. \(5x + 11 = -24\).