Final answer:
The expected time for the first departure is 1/μ and for the second departure, due to the memoryless property of the exponential distribution, it is also 1/μ.
Step-by-step explanation:
The question asks about finding the expected times of both the first and the second departures of friends A and B from a house, assuming they arrive and spend time at the house according to independent exponential distributions with identical rates for arrivals (λ) and time spent (μ). Since arrivals and departures are modeled with exponential distributions, we can use the memoryless property to address this problem.
For the first departure, both friends have the same rate of arrival and duration of stay. Therefore, the first departure is expected after the mean of the exponential distribution, which is 1/μ, since the rate of staying (departure) is identical for both friends.
For the second departure, it depends on who arrived first and the remaining time they will spend. However, due to the memoryless property of the exponential distribution, the expected remaining time for the second departure after the first departure is again 1/μ, independent of the arrival order.