So first we need to represent our problem with the restriction we have.
and the other restriction is:
from the second equation we can solve for x, and it will be:
and replace that into the first equation:
and now we solve for y
with this solution we can solve the second equation:
This is one of the posible solution, now you can play with the decimals, so for example 4 peaches and 6 apples, or 6 peaches and 4 apples