500
You are making cookies to sell. Each box holds 6 cookies, and you have made a total of 178 cookies. If you are going to eat the cookies that don't fit into a box, how many cookies do you get to eat. Mmmm, cookies!
The answer is 29 r 4, so you have 4 cookies left over to eat!