Final answer:
The expected price of gasoline per gallon is $3.638.
Step-by-step explanation:
To determine the expected price of gasoline per gallon, we need to calculate the average price for each scenario. Let's start by finding the average wait time for customers. Since the arrivals follow a Poisson process with a mean rate of 20 per hour, the average time between arrivals is 1/20 hours or 3 minutes. With the service times having an exponential distribution with a mean of 2 minutes, the average wait time is the average time between arrivals minus the average service time, which is 3 - 2 = 1 minute.
Next, we calculate the probability of a customer having to wait. Using the formula for the probability of at least one customer in a time interval, we have 1 - e^(-λt), where λ is the arrival rate and t is the time interval. Plugging in λ = 20 per hour and t = 1/60 hours (1 minute), we find the probability of a customer having to wait is 1 - e^(-20/60) = 0.1813.
Finally, we can calculate the expected price per gallon by multiplying the probabilities of each scenario by their respective prices and summing the results. The expected price is (0.1813 × $3.50) + (0.8187 × $4.00) = $3.638. Therefore, the expected price of gasoline per gallon is $3.638.