Let $X$ and $Y$ be independent random variables. Prove that $f(X)$ and $g(Y)$ are independent for any choice of measurable functions $f$ and $g$.
This sounds very obvious, but I have no idea how to approach it.
EDIT: Two random variables are independent if $\Pr\{X = x \text{ and } Y = y\} = \Pr\{X = x\} \cdot \Pr\{Y = y\}$