To find the median delivery time for each pizza shop, we first need to sort the delivery times in ascending order.
Pizza Shop 1:
Delivery times: 18, 23, 15, 22, 21, 24, 28, 20
Sorted: 15, 18, 20, 21, 22, 23, 24, 28
Since there are 8 delivery times (an even number), the median is calculated by taking the average of the 4th and 5th values:
- 4th value: 21
- 5th value: 22
Median for Pizza Shop 1: \[ \text{Median} = \frac{21 + 22}{2} = \frac{43}{2} = 21.5 \text{ minutes} \]
Pizza Shop 2:
Delivery times: 20, 17, 16, 38, 21, 20, 18, 25
Sorted: 16, 17, 18, 20, 20, 21, 25, 38
Again, with 8 delivery times (even), the median is the average of the 4th and 5th values:
- 4th value: 20
- 5th value: 20
Median for Pizza Shop 2: \[ \text{Median} = \frac{20 + 20}{2} = \frac{40}{2} = 20 \text{ minutes} \]
Conclusion:
- The median delivery time of Pizza Shop 1 is 21.5 minutes.
- The median delivery time of Pizza Shop 2 is 20 minutes.
- Based on the median, Pizza Shop 2 has a faster delivery time.
Final answers: The median delivery time of Pizza Shop 1 is 21.5 minutes. The median delivery time of Pizza Shop 2 is 20 minutes. Based on the median, Pizza Shop 2 has a faster delivery time.