A pizza parlor can cook 8 pizzas an hour in their pizza oven. If the parlor has taken in an order of 40 pizzas, how many hours will they need to cook the pizzas?

If the pizza parlor can cook 8 pizzas an hour, then to cook 40 pizzas, they will need 40/8 = <<40/8=5>>5 hours. Answer: \boxed{5}.

To find the number of hours needed to cook 40 pizzas, we will divide the total number of pizzas by the number of pizzas that can be cooked in an hour.

Number of pizzas = 40
Number of pizzas cooked per hour = 8

Number of hours needed = Number of pizzas / Number of pizzas cooked per hour
Number of hours needed = 40 / 8
Number of hours needed = 5

Therefore, the pizzeria will need 5 hours to cook the 40 pizzas.