I think it is easy to find $p_{S}(s)$ in the first question, which is the convolution of $p_{X}(x)$ and $p_{Y}(y)$.
In the second question, I try to use Jacobian to find out $p_{S,X}(s,x)$ by adding auxiliary variable. But how to deal with the intervals when evaluating $p_{S,X}(s,x) = \frac{p_{X,Y}(w,s-w)}{\lvert J(x,y)\rvert}$, where $w=x$. Since variable $w$ needs to be in $[0,1]$ and $s-w$ to be in $[0,1]$ but $s$ to be in $[0,2]$, I am in trouble with the expression of $p_{X,Y}(w,s-w)$.
There's obviously something I don't understand well, please tell me where my mistake is. Any help would be great! Thanks!