Grandma Jean decides to write down her secret fruitcake recipe. She uses one pineapple for every plum, two pears for every pineapple, and three apples for every plum. If she wanted to make a fruitcake with 10 pears in it, how many total pieces of fruit would she need to buy?