We have the following random variables
$X\sim ber(\frac{1}{3})$
$Y \sim exp(3) \ \text{given} \ \{X=0\}$
$-Y \sim exp(5) \ \text{given} \ \{X=1\}$
Now I have to determine the mean and variance of $Y$
This is my approach, first of all calculate mean and variance of $X$ which is Bernoulli distributed.
$$\mathbb{E}[X]=\frac{1}{3}$$ $$Var(X)=\frac{1}{3}\cdot\frac{2}{3}=\frac{2}{9}$$
Now we move on to the conditional mean and variance
$$Y \sim exp(3) \ \text{given} \ \{X=0\}$$
$$\mathbb{E}[Y|X]=\frac{1}{\lambda}=\frac{1}{3}\cdot X$$
$$\mathbb{E}[Y]=\mathbb{E}[\mathbb{E}[Y|X]]$$ $$\mathbb{E}\left[\frac{1}{3}\cdot X\right]$$ $$\frac{1}{3}\mathbb{E}[X]=\frac{1}{3}\cdot\frac{1}{3}=\frac{1}{9}$$
$$Var(Y)=\mathbb{E}[Var(Y|X)]+Var(\mathbb{E}[Y|X])$$ $$\mathbb{E}\left[\frac{1}{3}\cdot \frac{2}{3}\cdot X\right]+Var\left(\frac{1}{3}X\right)$$ $$\frac{2}{9}\cdot\mathbb{E}[X]+\frac{1}{9}Var(X)=\frac{2}{9}\cdot \frac{1}{3}+\frac{1}{9}\cdot \frac{2}{9}=\frac{8}{81}$$
But what do I have to do with $-Y$ I don't know how to integrate this random variable into my calculation.
The task is to get $\mathbb{E}[Y]$ and $Var(Y)$
Hint: The density of $Y$ given $X=1$ is given by $$P(Y=y|X=1) \begin{cases} 0&y>0\\ \lambda e^{\lambda y}&y\leq0 \end{cases} $$ with $\lambda=5$.