`-2x - (x - 17) = 34 - (-x + 25)`
`<=> -2x - x + 17 = 34 + x - 25`
`<=> -3x + 17 = 9 + x`
`<=> 17 - 9 = x + 3x`
`=> x = 8 : 4 `
`=> x = 2`
\(-2x-x+17=34+x-25\\ \Rightarrow-3x+17=9+x\\ \Rightarrow-3x-x+17-9=0\\ -4x+8=0\\ \Rightarrow-4x=-8\\ \Rightarrow x=2\)