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