Since angles 1 and 2 are vertical angles, their measures are equal. Therefore, we can set the expressions for the angles equal to each other:
\[ 4x - 8 = 3x + 18 \]
Now, let's solve for \(x\).
- Subtract \(3x\) from both sides:
\[ 4x - 3x - 8 = 18 \] \[ x - 8 = 18 \]
- Next, add 8 to both sides:
\[ x = 18 + 8 \] \[ x = 26 \]
Thus, the value of \(x\) is \(\boxed{26}\).