Let $X$ and $Y$ be independent random variables with geometric probability function $p(k) = (1-\pi)\pi^{k}$ for $k = 0,1,...$ and $0 < \pi < 1$. Let $U = \max(X,Y)$ and $V = \min (X,Y)$. Define $W = V - U$.
I want to find the joint probability mass function of $U$ and $W$.
My attempt:
I found the distribution of $U$ by cumulative function of geometric distribution and independness:
$$ P(X \leq k) = 1 - (1 - \pi)^{k} $$
$$P(U \leq u) = P (X \leq u, Y \leq v) = P(X\leq u) P(Y\leq u) $$
How do I find the distribution of $W$ or any attempt to solve this problem?