Let's say that $X \sim \operatorname{U}[0,1]$ and $Y \sim \operatorname{U}[0, 2].$
So $f_X(x) = 1$ and $f_Y(y) = 0.5$ and $F_X(x) = x$ and $F_Y(y) = y/2$.
If $Z$ is distributed with $X$ half the time, and $Y$ half the time is the $\operatorname{pdf}(Z) = f_Z(z) = (1/2)(1) + (1/2)(1/2) = 3/4$?
I believe, but I'm not sure, that this works for uniform random variables, but does this method to find the $\operatorname{pdf}(z)$ also work for any random variables?