Welcome to Math Help Forum!
The implication is that there were the same number of pieces of fruit in each of piles. If this number is , then there were (obviously) pieces of fruit altogether. So where does the number of different types of fruit come in? What justification is there for adding the number of different types of fruit to the number of pieces of fruit to give ? That just doesn't make any sense.
I think there must be some information that's incorrect or missing here.