Suppose $X \sim U(0,1)$ and $Y \mid X \sim U(0,X)$.
Find:
- $f_{X, Y}(x,y)$ (The joint probability density function);
- $\mathbb{E}(Y)$;
- $\Pr(X+Y < 1)$.
The only one of these I think I've solved is 2):
$$E(Y)=\int_0^1E(Y \mid x)\,\mathrm{d}x = \int_0^1\frac{0+x}{2}\,\mathrm{d}x = \frac 14.$$
(2) is fine. Maybe a tidier argument would use the property $E(E(Y|X))=E(Y)$. But it's ok (and I suggest that you put a $1$ multiplying $E(Y|x)$ to make clear that you used there the fact that $X\sim U(0,1)$.
For (1), remember that $$f_{XY}(x,y)=f_{Y|X=x}(y)\cdot f_X(x).$$
Once you have the joint density you can work on (3), since $$P(X+Y<1)=\iint_A f_{XY}(x,y) dA,$$ Where $A=\{(x,y)\in\mathbb R^2\colon x+y<1\}$. But have in mind the fact that the joint density is $0$ except for a bounded set.