prompt: Ivan buys 48 apples to make 24 full-size pies. He ends up not using as many as he thought because he decides to make mini pies instead of full-size ones, which only use 1/2 an apple each. If Ivan bakes 24 mini pies, how many apples does he have leftover?
messages.content: Ivan buys 48 apples to make 24 full-size pies. He ends up not using as many as he thought because he decides to make mini pies instead of full-size ones, which only use 1/2 an apple each. If Ivan bakes 24 mini pies, how many apples does he have leftover?
messages.role: user
messages.content: Ivan wants to bake 24 pies which use 1/2 an apple each, 24 pies x 1/2 apple each = <<24*1/2=12>>12 apples
  Ivan uses 12 of his 48 apples, 48 - 12 = 36 apples
  Ivan has 36 apples leftover.
  #### 36
messages.role: assistant