\[13x + 18x - x - 5 =\]
\[= (13 + 18 - 1)x - 5 = 30x - 5;\]
\[x = 9:\]
\[30 \cdot 9 - 5 = 270 - 5 = 265.\]