Since X & Y are independent U[0,1], the distribution function of X & Y is
F(x) = x , 0<x<1 and F(y) = y , 0<y<1.
Let Z = Max(X,Y) and W = Min(X,Y).
Let G(z), ...
Solution describes a property of two independent uniform random variables.