To prove that $f$ is onto you must pick an arbitrary $(x, y) \in \mathbb R^2$.
If you can find an $(x',y')$ so that $f(x',y') = (x,y)$ then that proves $f$ onto, because if we can do it for $(x,y)$ we can do it for any other point because there was nothing special about $(x,y)$.
If we let $y' = y$ and $x' = x - y$then
$f(x',y') = (x'+ y', y') = ((x-y)+y, y) = (x,y)$.
We can do that for any point, ... say $(a,b)$ ... and we can always find $f(a-b, b) = (a,b)$ so we can map to any point.
Perhaps it would help to show how a function might NOT be onto.
Let $f(x,y) = (x^2 + y , y)$
We pick an $(x,y)$ arbitririly. And we want to show that there is always some $(x',y')$ such that $f(x',y') = (x,y)$. We we FAIL. Because that isn't true.
So we must solve for $f(x',y') = (x'^2 + y', y') = (x,y)$
So we must have that $y' = y$ and that $x'^2 + y' = x$.
But that means $x'^2 + y = x$ so that $x'^2 = x - y$. But what if $x - y < 0$. If that happened there's no such $x'$ that will make that true.
So if $y>x$ this is impossible that there is any $(x',y')$ so that $f(x',y') = (x,y)$. For example if $f(x,y) = (x^2 + y, y) = (0,1)$ is impossible. So $f$ is NOT unto.