Solution (source code)

= Solution

The composite event has total constant hazard $\theta+\phi$, so its cumulative incidence is
$$
F_{A\cup B}(t)=1-e^{-(\theta+\phi)t}.
$$
It also equals $F_A(t)+F_B(t)$ because the two first-event types are mutually exclusive.