Michael orders pizzas from Pizza by Alfredo and from Alfredo's Pizza Cafe. The pizzas from Pizza by Alfredo costs $3 each, and the pizzas from Alfredo's Pizza Cafe costs $5 each. Michael spent $24 more on pizza from Alfredo's Pizza Cafe than he did at Pizza by Alfredo. If Michael spent $66 in total, how many pizzas did he buy from each place?