Let $X_1$ and $X_2$ be independent and identically distributed continuous random variables, with probability density function
$$p(x)=\begin{cases} \exp(-x), & \text{if}\ x>0 \\ 0, & \text{otherwise}. \end{cases}$$
Let
$$Z=\frac{X_1}{X_1+X_2}+2X_2$$
Derive the probably density function of $Z$. It is sufficient to give the required pdf in the form of an integral of a joint pdf.
This is pretty gross and I cannot see how to start this question.
Comments:
To answer your second question, I'm guessing you're expected to 'integrate out' the unwanted variable(s) to give the pdf.
The standard method is to transform to variables $Y$ and $Z$ (where $Y$ is chosen for convenience), and then integrate $Y$ out of the joint density. As you work, be sure to keep in mind the support of each random variable involved.
Below is a brief simulation in R that gives 100,000 realizations of $Z$, and some clues about the answer. 'ECDF' is the empirical CDF of the realizations.