Answer
$2$
Work Step by Step
Solve using PEMDAS (The priority list for solving expressions: Parentheses, exponents, [multiplication, division], [addition, subtraction]. For the operations in the brackets, solve from left to right)
$[40-(8-2)]-2^5 = [40-6] - 2^5 = 34-2^5 = 34-32 = 2$