***I just thought of this...does gamma_0 have the same distribution as the other gammas? I had assumed that in my answer above and in what follows below.*****
Is that answer supposed to be for the exponential distribution? I don't know how they got that, but I'm not saying it is incorrect. Also, if these are identically distributed random variables, then \overline{\gamma}_f = \overline{\gamma}_0 = 2\overline{\gamma}, which would simplify those expressions. I also don't see why it needs to be separated into two intervals of y. Do the authors explain any of this or do they present the answer out of thin air?
Here's how I got my answer. I am going to use X for the random variable so I don't have to keep typing out "gamma". Also, I will use the rate \lambda = 1/\overline{\gamma}, the inverse mean. So the density function for the X_i is
f_{X_i}(x) = \lambda e^{-\lambda x}
First of all, try to find the cumulative distribution function for Y given X_f <= X_0. This is
P\{Y \leq y | X_f \leq X_0\} = \frac{P\{Y \leq y , X_f \leq X_0\}}{P\{X_f \leq X_0\}}
I assumed that X_f and X_0 are identically distributed, in which case the probability in the denominator is just 1/2. But if that assumption was wrong, I don't think it is too hard to modify. So basically I'm interested in finding P\{Y \leq y , X_f \leq X_0\}. First I need to find the cumulative distribution function for the random variable M = min(X_h, X_g):
P\{M \leq x\} = 1 - P\{M > x\} = 1 - P\{X_h>x\}P\{X_g>x\}
P\{M \leq x\} = 1 - e^{-2\lambda x} using i.i.d.
So the density for M is
f_M(x) = 2\lambda e^{-2\lambda x}, exponential with mean half that of the X's. Now to find
P\{X_f + M \leq y , X_f \leq X_0\}, I use the joint density for M, X_f, and X_0, which by independence is
f_{X_0, X_f, M}(r,s,t) = f_{X_0}(r)f_{X_f}(s) f_{M}(t) = \lambda e^{-\lambda r} \lambda e^{-\lambda s} 2\lambda e^{-2\lambda t}
Finally, compute the integral
P\{X_f + M \leq y , X_f \leq X_0\} = \int_{t=0}^y\int_{s=0}^{y-t}\int_{r=s}^{\infty}f_{X_0, X_f, M}(r,s,t)drdsdt = -\lambda y e^{-2\lambda y} + \frac{1}{2}(1-e^{-2\lambda y})
Differentiating this and multiplying by 2 (from my assumption that P{X_f <= X_0} = 1/2) gives the answer
f_Y(y| X_f \leq X_0) = 4\lambda ^2 y e^{-2 \lambda y}