I had the following question in my mid-term exam of "real analysis for graduates" course. The professor had taught Bruckner's up to chapter 5 so hadn't taught Tonelli-Fubini Theorem and "by rule" we were not allowed to use that theorem because it is not a content of undergraduate courses!
So here is the question :
Let $(X, \mathcal{M}, \mu)$ be a (positive) measure space and $f: X \to \mathbb{R}$ be a measurable function. For $t>0$ define $\lambda(t) = \mu({\{x \in X : |f(x)|>t}\})$. Show that if we consider Lebesgue measure on $(0,\infty)$ we have $\int_X |f| d \mu = \int_{(0,\infty)} \lambda(t) dt$.
The instructor didn't solve the problem but mentioned that the solution is based on first showing for simple functions and then proving the main theorem by taking limit.
PS I will offer a bounty of 500 for the accepted answer.
Here's an initial push to get you started.
Suppose that $f(x) = \sum_{k=1}^n a_k 1_{A_k}$, with $a_0 = 0 < |a_1| \leq \cdots \leq |a_n|$. We find that $\lambda(t) = \sum \{\mu(A_k):|a_k| > t\}$, where I use $\sum S$ to denote the sum of the elements of the (finite) set $S$. We see that $$ \begin{align} \int_{(0,\infty)} \lambda(t)\,dt &= \sum_{j=1}^n \int_{|a_{j-1}|}^{|a_j|} \lambda(t) \\ & = \sum_{j=1}^n \int_{|a_{j-1}|}^{|a_j|} \sum_{k=j}^n \mu(A_k) = \sum_{j=1}^n \sum_{k=j}^n (|a_j| - |a_{j-1}|)\mu(A_k). \end{align} $$ On the other hand, compute $$ \int_X |f|\,d\mu = \sum_{k=1}^n |a_k|\cdot \mu(A_k). $$ Show that these two sums are equal.