I did this in my head but I did 3*36 and got 108 and then divided by 4 and got 27 so 27 is the answer. This is a trick question because it is saying that there were 36 cookies per three pans and that added up is a big number and then you take off all the cookies and put it into 4 bags.