To solve the expression \(-10 - (-40) + 20 - 40\), we'll follow the order of operations:
-
First, simplify \(-10 - (-40)\): \[ -10 + 40 = 30 \]
-
Now substitute that back into the expression: \[ 30 + 20 - 40 \]
-
Next, perform the addition: \[ 30 + 20 = 50 \]
-
Now subtract 40: \[ 50 - 40 = 10 \]
So, the final result is: \[ \boxed{10} \]