A basket contains 9 apples, 8 bananas and 7 oranges. A fruit is picked from…