A catering company makes fruit salad using only 4 ingredients. They use 4 apples for every mango, 2 pears for every apple, and 1 pineapple for every mango. If they use 8 pineapples how many total pieces of fruit did they use?