Suppose $X_1,\ldots,X_n,Y_1,\ldots,Y_n$ are independent exponential r.v., where the density of $X_i$ is $f_i(x)= \lambda_i\theta \exp(-\lambda_i \theta x_i)$ for $x\geq0$, while the density of $Y_i$ is $g_i(x) = \lambda_i \exp(-\lambda_i x_i)$ for $x\geq0$.
Find the MLE of theta (based on $X_1,\ldots,X_n,Y_1,\ldots,Y_n$).
Find the MLEs of $\lambda_i$ for each $i$.