Ответ:

3x + 5 + x + 5 = -x + 1 + 4
4x + 10 = -x + 5
4x + x = 5 - 10
5x = -5
x = -1