I'll start a) (Obviously b) starts in a similar way):

The cdf of U is

(the inequality remains in the same direction since )

.

Case 1::

since the joint pdf of and is (because and are independent).

The rest is left for you to do. Note that the pdf of U is given by .

Case 2::

.