Answer:
Mary has to put 5 oranges back so that the average price of the pieces of fruit that she keeps is 52 cents.
Explanation:
From the given information it is clear that
Price of each apple = 40 cents
Price of each orange = 60 cents
Let the number of apple be x and number of oranges be y.
Mary selects a total of 10 apples and oranges from the fruit stand.
.... (1)
The average (arithmetic mean) price of the 10 pieces of fruit is 56 cents.

.... (2)
On solving (1) and (2), we get

Let she put z oranges back so that the average price of the pieces of fruit that she keeps is 52 cents.

On cross multiplication, we get




Divide both sides by 8.


Therefore, Mary has to put 5 oranges back so that the average price of the pieces of fruit that she keeps is 52 cents.