If the joint probability density of $X$ and $Y$ is given by
$$f(x,y)=\left\{\begin{matrix} 24xy,0<x<1,0<y<1,x+y<1 & & & \\ 0, elsewhere& & & \end{matrix}\right.$$
Find $P(X+Y<\frac{1}{2})$
I don't understand how the given answer comes from. How do I determine the lower limit and the upper limit for the double integral? Thanks in advance.
$$\begin{aligned} P(X+Y<\frac{1}{2}) &= \iint_{\Bbb{R}^2} f(x,y) \cdot 1_{0 < x+y < 1/2} \, dxdy \\ &= \int_0^{1/2} \int_0^{1/2} 24xy \cdot 1_{0 < x+y < 1/2} \, dydx \\ &= \int_0^{1/2} \int_{0}^{1/2-x} 24xy dy dx \\ &= \int_0^{1/2} 12x (\frac12 - x)^2 dx \\ &= \int_0^{1/2} 12x (\frac14-x+x^2) dx \\ &= \int_0^{1/2} (3x-12x^2+12x^3) dx \\ &= \frac32(\frac12)^2 -4(\frac12)^3 + 3(\frac12)^4\\ &= \frac{1}{16} \end{aligned}$$