Evaluate the following expression.
40+(9)(31)32\displaystyle {40}+{\left(-{9}\right)}-{\left(-{31}\right)}-{32}