Answer:
We know that if X ~ Exp(\lambda_x) and Y ~ Exp(\lambda_y), then
P(X < Y) = \lambda_x / (\lambda_x + \lambda_y )
Let T1 and T2 be the time taken for barista 1 and barista 2 filling an order respectively.
T1 ~ Exp(1 per 60 seconds) = T1 ~ Exp(1 per minute)
Similarly, T2 ~ Exp(1 per minute)
Then,
P(T1 < T2) = 1 / (1 + 1) = 1/2
P(T2 < T1) = 1 / (1 + 1) = 1/2
Probability that you will be the last one of the three to leave the coffee shop with your coffee order
= Probability that John (barista 1) leaves before Mary (barista 2) and Probability that Mary (barista 2) leaves before you (barista 1) + Probability that Mary (barista 2) leaves before John (barista 1) and Probability that John (barista 21) leaves before you (barista 2)
= P(T1 < T2) * P(T2 < T1) + P(T2 < T1) * P(T1 < T2) (Due to Memoryless property of exponential distribution)
= (1/2) * (1/2) + (1/2) * (1/2)
= 1/2
Step-by-step explanation: