formula to of how many apples in a basket with a ratio of 3 to 5 apples to oranges with a total of 40 apples and oranges