Growth attribution

I’m blanking on how to do some basic analysis. Help!

How do you decompose revenue growth by categories? For example I grow fruit and my total revenue grew by 10% year over year, but apples revenue grew 57%, bananas declined -38%, cherries 2% and so on…how can I break down each category’s weighted impact on overall revenue growth?

You know each weights already? Meaning apples are 10% of overall growth?