The weights of n items are $X_1, \ldots, X_n$, assumed independent uniform distribution ${\cal U}(0, 1)$. Mary and John each have a bin (or suitcase) which can carry total weight 1. Mary likes to pack in her bin only the heaviest item. John likes to pack the items in order $1, 2, \ldots, n$, packing each item if it can fit in the space remaining. Denote by $W_M$ the weight of Mary's suitcase and by $W_J$ the weight of John's suitcase.
Find the pdf-s of $W_M$ and $W_J$ and then compute the expectations of these random variables.
Hint. You need to know that, for any $c > 0$ and any positive integer $k$ we have $\int\limits_{x_1,...,x_k \geq 0, x_1+...+x_k \leq c} \frac{c^k}{k!}$.
I am not sure where to begin for this problem, so if anyone could walk me through it or give me a place to start that would be greatly appreciated.