The sum of mangoes, pears and pawpaws is 18+10+12 = <<18+10+12=40>>40
The total number of fruits is 58 so the last two baskets contain 58-40 = <<58-40=18>>18 fruits
Each of the last two baskets contains an equal amount of fruits which is 18/2 = <<18/2=9>>9 fruits
#### 9