Perform the following operation and simplify:

(22+7) - (12-5)

= 29 - 7

= 22