Solution (source code)

= Solution

Condition on the independently generated random censoring information. For every realized common censoring horizon, part b(i) gives the same conditional probability $\lambda_1/(\lambda_1+\lambda_2)$. The <law of total probability> therefore gives that ratio after averaging over the censoring distribution as well.