Step 1: Expand and simplify both sides.
On the left-hand side, expand \( 3(x^2 + x) - 7 \):
\[
3(x^2 + x) - 7 = 3x^2 + 3x - 7.
\]
On the right-hand side, expand \( x^2 + 2(4 + x^2) \):
\[
x^2 + 2(4 + x^2) = x^2 + 8 + 2x^2 = 3x^2 + 8.
\]
Step 2: Set the two expressions equal.
Now we have the equation:
\[
3x^2 + 3x - 7 = 3x^2 + 8.
\]
Step 3: Solve for \( x \).
Cancel out \( 3x^2 \) from both sides:
\[
3x - 7 = 8.
\]
Add 7 to both sides:
\[
3x = 15.
\]
Divide by 3:
\[
x = 5.
\]
Conclusion:
The correct answer is (B) 6.