Below is an instruction that describes a task. Write a response that appropriately completes the request in Swahili. Please answer in Swahili.

### Instruction:
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?

### Response:
 Ivan anataka kupika pai 24, ambazo zingetumia 24*1.5 = <<24*1.5=36>>36 matofaa kwa pai za ukubwa kamili.
Ivan anatumia tu 24*0.5 = <<24*0.5=12>>12 matofaa kwa pai za ukubwa mdogo.
Ivan anabakiwa na matofaa 48-12 = <<48-12=36>>36.