Let $X$ and $Y$ be exponential random variables with parameters 1 and 2. A coin has probability of getting heads as $p$ and probability of getting tails as $1-p$. Let $Z$ be another random variable such that $Z=X$, if the coin turns heads and $Z=Y$, if the coin turns tails. Find $p(1\leq Z \leq 2)$.
MY WORK: $P(1<=Z<=2)=P(1<=X<=2|Z=X) + P(1<=Y<=2|Z=Y) = P(1<=X<=1) + P(1<=Y<=1)$ I could proceed very easily like this, but is this correct?