Ответ:

9 - 6x + 8 + 2x = 5
17 - 4x = 5
4x = 12
x = 3