If you randomly select one piece of fruit and eat it, then there are nine pieces of fruit remaining in the basket, including three apples and six peaches.
So, the probability of selecting an apple on the first pick is 4/10, or 2/5.
After eating the first piece of fruit, there are now nine pieces of fruit remaining in the basket, including three apples and six peaches. So, the probability of selecting another apple on the second pick is 3/9, or 1/3.
To find the probability of both pieces of fruit being apples, we need to multiply the probabilities of selecting an apple on the first pick and an apple on the second pick:
P(apple and apple) = P(apple on first pick) x P(apple on second pick)
P(apple and apple) = (2/5) x (1/3)
P(apple and apple) = 2/15
Therefore, the probability that both pieces of fruit are apples is 2/15.