A manager set a time for two of his employees to meet with him at the same time, unfortunately he can see only one person at the same time and so one of them must wait. the time of each meeting follows an exponential distribution with mean = 30 minutes ($\lambda = 1/30$). We want to calculate the Expected Value of the time-distance between first man entrance to second man exit if (for example if first man enters at 11:00 and exits at 11:10 and second man enters at 11:10 and exits at 12:00, time-distance will be 60 minutes. i.e. 12:00 -11:00)
a) we know that person 1 arrives on time and person b arrives 5 minutes later.
b) we know that person 1 arrives on time and b arrives X minutes later and X has a exponential distribution with mean = 5 minutes.
For a) I think we have two conditions. First person meeting ends before 5 minutes and first person meeting ends after 5 minutes. the probability that it takes less than 5 minutes is $1- e^ { - \frac{1}{30} * 5}= 0.1535 $ and in this condition, the expected value is $5 + 30$ (5 because person b arrives 5 minutes late). the probability that it takes more than 5 minutes is 0.8465 and so expected value in this condition is $\int_5^\infty x\frac{1}{30} e^{- \frac{1}{30} x} + 30 = 59.6269$ and the final answer will be $0.1535 \times 35 + 0.8465 \times 59.6269 = 55.8466$
I don't know any idea to solve part b.
I want to know whether my answer for part a is correct and how to solve part b