Mary prepared 40 pineapple fruit yogurt cups to sell at a school fair. She sold 5/8 of the cups. How many cups did Mary sell?

Mary sold 5/8 x 40 = <<5/8*40=25>>25 pineapple fruit yogurt cups. Answer: \boxed{25}.

To find out how many cups Mary sold, we need to calculate 5/8 of the total number of cups she prepared.

Step 1: Calculate 5/8 of 40 cups.
5/8 * 40 = (5 * 40) / 8 = 200 / 8 = 25

Mary sold 25 pineapple fruit yogurt cups at the school fair.

To find out how many cups Mary sold, we need to multiply the total number of cups by the fraction she sold, which is 5/8.

Step 1: Multiply the total number of cups by the numerator of the fraction she sold, which is 5.
40 * 5 = 200

Step 2: Divide the result by the denominator of the fraction she sold, which is 8.
200 / 8 = 25

Therefore, Mary sold 25 pineapple fruit yogurt cups at the school fair.