We want to know how many apples, pears, peaches and oranges Sammy bought. We know that she bought a total of 288 fruits, and:
• 4 times as many apples as pears
,
• 2 times as many peaches as pears
,
• 5 times as many oranges as pears
We will call by a, p and o the amount of apples, peaches and oranges bought, and by b the number of pears. The information above gives us that:

Replacing the values obtained we get:

This means that the number of pears is 24, and with this we can obtain the other fruits:

Hence, the number of apples is 96, the number of peaches is 48 and the number of oranges is 120.