To solve the equation \(6x + 5 = -8 + 3x + 25\), we first simplify the right side:
\[ -8 + 25 = 17 \]
So, the equation simplifies to:
\[ 6x + 5 = 3x + 17 \]
Next, we want to get all terms involving \(x\) on one side and the constant terms on the other side. We can do this by subtracting \(3x\) from both sides:
\[ 6x - 3x + 5 = 17 \]
This simplifies to:
\[ 3x + 5 = 17 \]
Now, subtract \(5\) from both sides:
\[ 3x = 17 - 5 \]
This gives us:
\[ 3x = 12 \]
Now, divide both sides by \(3\):
\[ x = \frac{12}{3} \]
So we find:
\[ x = 4 \]
Thus, the solution is:
\[ \boxed{4} \]