Paul bought prizes for the math contest. He bought 3 times as many pinwheels as frisbees. He bought half as many frisbees as whistles. If Paul bought 27 pinwheels, how many prizes did he buy altogether?

p = 3f

w = 2f
p = 27
so, f = 9 and w = 18
27+9+18 = 54