Answer:
There are 40 apples in the basket.
This is because 5 apples to 3 pears have a difference of 1.66666667 when dividing 5 by 3 to show the ratio difference. Then, all you do is multiply this number by the number of total pears which would look like 24 x 1.66666667 = 40.
I hope this helped you, have an amazing day! :)