Answer:
The first one is 7 I think
Explanation:
x+5=2x-2
subtract x from both sides.
5=x-2
add two to both sides and that is 7
Second one is -14 I think
x+40+3x-17=2x-5
Rearrange the equation by subtracting what is to the right of the equal sign from both sides of the equation : 
x+40+3*x-17-(2*x-5)=0 
 
Pull out like factors : 
2x + 28 = 2 • (x + 14)
 Solve : x+14 = 0 
Subtract 14 from both sides of the equation : 
 x = -14