Answer:
Work backwards to solve this problem.
If he ends with 32 cookies, then subtract 12. That gives 20 cookies. 20*2 is 40, so now he has 40 cookies.
1.6m questions
2.0m answers