I have solved these both problem and as you know, to write here the latex code of them would take some time. So, would you please be kind enough to compute on your own, or use any computation math tool to do so (I don't know any, except for maxima, and don't know how to compute double integrals there) and check if they are equal with mine?

Thanks.

Problem 1:

$\displaystyle f(x,y)_Q, Q = [0,1]^2, f(x,y) = 1-x-y$ if $\displaystyle x+y \leq 1$ and $\displaystyle f(x,y) = 0$ in other points

Solution problem 1: $\displaystyle \frac{1}{6}$

Problem 2:

$\displaystyle f(x,y)_Q, Q = [0,1]^2, f(x,y) = x+y$ if $\displaystyle x^2 \leq y \leq 2x^2$ and $\displaystyle f(x,y) = 0$ in other points

Solution problem 2: $\displaystyle \frac{11}{20}$

P.S. Both this functions have two "branches". I suppose that's possible to write that in latex more clearly than what I have done. How?