calculates the number of pizzas and cost to feed everyone