Word Problem

Every Halloween Smallville sees about 349 trick or treaters and on average they collect about 162 pieces of candy each.  Halloween candy is usually purchased in bags of 18.

How many pieces of candy were collected in all? ______

How many bags of candy were handed out? ______

Show your work!