Computing the covariance

hedi

(X,Y) is uniformly distributed on the unit square [0,1]x[0,1].U=min(X,Y),V=max(X,Y). find cov(U,V)