Darius purchased prizes for the school carnival. There were 3 times as many lollipops as pinwheels and 6 times as many whistles as pinwheels. Darius counted 12 lollipops. How many prizes did Darius purchase in all?
L = 3p l = 12 so p = 4
w = 6p w = 6(4) = 24
12 + 4 + 24 = 40 prizes