First I'll have to mention this is not homework or something like that. It's training for an exam and I couldn't find resources on how it is done. If you have any URL showing how to solve these kinds of Lebesgue exercises, please tell me.
I have the following to find:
$\mu(([0,10]\setminus \mathbb{Q}) \cup ([0,20]\cap \mathbb{Q})) $ where $\mu$ is the Lebesgue measure on $\mathbb{R}$.
$\lambda(\{(x,x)\in \mathbb{R}^2 \; : \; x\in \mathbb{R} \})$ where $\lambda$ is the Lebesgue measure on $\mathbb{R}^2$.
I know that for an interval, let's say $[a, b]$, the Lebesgue measure would be $b-a$, right?
But for these I do not know how, plus it's $\mathbb{R}^2$ in the second case, not $\mathbb{R}$.