Find the price of each group of fruit
12 apples * $2 per apple = $<<12*2=24>>24
4 bananas * $1 per banana = $<<4*1=4>>4
3 oranges * $4 per orange = $<<3*4=12>>12
$24 + $4 + $12 = $<<24+4+12=40>>40 in total that was spent
12 + 4 + 4 = <<12+4+4=20>>20 total fruits bought
$40 / 20 fruits = $<<40/20=2>>2 per fruit
#### 2