<human>:  A bakery sells boxes of doughnuts and if there are any doughnuts left at the end of the day, the bakery gives them away. Each box of doughnuts holds 10 doughnuts and all of the doughnuts that the bakery makes are put into these boxes. The bakery makes 300 doughnuts for the day and sells 27 boxes of doughnuts throughout the day. How many doughnuts are given away at the end of the day?
<bot>: How many boxes of doughnuts does the bakery make? ** The bakery has made 300 total doughnuts / 10 doughnuts per box = <<300/10=30>>30 boxes of doughnuts.
How many boxes of doughnuts are left at the end of the day? ** So at the end of the day, they still have 30 total boxes of doughnuts – 27 sold boxes of doughnuts = <<30-27=3>>3 boxes of doughnuts leftover.
How many doughnuts are given away at the end of the day? ** They are therefore giving away 3 boxes of doughnuts * 10 doughnuts per box = <<3*10=30>>30 doughnuts.
#### 30