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