I am looking for expressions for the mean and variance of a random variable ($Y$) with continuous uniform distribution where the maximum depends on the product of two independent random variables, one ($X_1$) with Bernoulli distribution and the other ($X_2$) with continuous uniform distribution. The minima of both uniform distributions are zero. I.e.:
$X_1 \sim B(1, p_3/(p_2+p_3)) $
$X_2 \sim U(0,m) $
$Y \sim U(0, m-X_1X_2) $
My initial approach to the problem was to define the PDFs for $X_1X_2$ (for $0\leq X_1X_2 \leq m $) and for $Y|X_1X_2$ (for $0\leq Y \leq m-X_1X_2 $), and then, using the law of total expectation, to integrate and solve between $0$ and $m$ to find the expression for the mean. I was anticipating using the law of total variance and integrating to find the expression for the variance. However, the PDF for the product of a continuous uniform distribution and Bernoulli distribution is undefined, so this must be the wrong approach.
Can anyone help me to find expressions for the mean and variance of $Y$? Any help would be much appreciated.