a family size pizza is $24 and costs 3 times as much as a small pizza. peter buys two family size pizzas and 3 small pizzas. how much does he spend in all?