How to do this transformation $Y= g(x) \sim \mathcal U(0,2)$?

If $X$ is a continuous random variable with probability density function $f_X(x)=2(1-x)$ for $0 < x < 1$, find the transformation $Y=g(X)$ such that the random variable $Y\sim \mathcal U(0,2)$.