There are some apples and oranges in a fruit basket. If Eve eats 2 apples, the number of apples left is 1/5 of the total number of fruits left in the fruit basket. If Eve eats 1 orange, the number of apples left is 2/7 of the total number of fruits left in the fruit basket. How many apples and oranges are there in the fruit basket?

a-2 = 1/5 (a-2 + o)

a = 2/7 (a + o-1)
solve to get a=6, o=16
check:
if 2 apples eaten, that leaves 4 apples out of 20 fruits
if 1 orange eaten, that leaves 6 apples out of 21 fruits