If it's not what You are looking for type in the equation solver your own equation and let us solve it.
4x+4=-2x+40
We move all terms to the left:
4x+4-(-2x+40)=0
We get rid of parentheses
4x+2x-40+4=0
We add all the numbers together, and all the variables
6x-36=0
We move all terms containing x to the left, all other terms to the right
6x=36
x=36/6
x=6