prompt: 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?
messages.content: 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?
messages.role: user
messages.content: The bakery has made 300 total doughnuts / 10 doughnuts per box = <<300/10=30>>30 boxes of doughnuts.
  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.
  They are therefore giving away 3 boxes of doughnuts * 10 doughnuts per box = <<3*10=30>>30 doughnuts.
  #### 30
messages.role: assistant