Assume that two independent random variables $X$ and $Y$ are Gamma-distributed such that $X \sim \Gamma(a,c)$ and $Y \sim \Gamma(b,c)$ with $a, b, c > 0$.
How can we see that two random variables $Z = \frac{X}{X+Y}$ and $W = X+Y$ are also independent?
I am trying to see that $P(Z \leq p, W \leq q) = P(Z \leq p)P(W\leq q)$, but I can not see how to compare the both sides. Is there any other way?
(This problem is one of exercises of my textbook without any answer.)