Let $(X,\mathcal{M},\mu)$ be a measure space. Let $a_i, b_j \geq 0$ and $A_i, B_j \in \mathcal{M}$ of finite measure, for $1 \leq i\leq n$, $1 \leq j \leq m$. If $\sum_{i=1}^n a_i\chi_{A_i} \leq \sum_{j=1}^m b_j\chi_{B_j}$, show that $\sum_{i=1}^n a_i\mu(A_i) \leq \sum_{j=1}^m b_j\mu(B_j)$.
This is a homework problem that I'm working on. The hint given was to make use of the canonical form of simple functions, but I'm unsure how to use that in order to show the inequality holds.
As this is a homework problem, this will be only a hint. My recommendation would be as follows. Suppose we have two measurable, simple functions $s,t$ such that $0\leqslant s$ and $s\leqslant t$.
First we can write $s$ and $t$ as $s=\sum_{i=1}^m c_i\chi_{C_i}$ where the $C_1, \ldots, C_m$ are disjoint, $c_i\geqslant 0$, and $C_1, \ldots, C_m$ is a partition of the measure space (see my comment above if you aren't sure how to do this). Do the same thing for $t=\sum_{i=1}^n d_i \chi_{D_i}$.
Now let $T=\{(i,j): 1\leqslant i\leqslant m, 1\leqslant j\leqslant n, C_i\cap D_j\neq \varnothing\}$ and note that $(C_i\cap D_j)_{(i,j}\in T\}$ is a partition of the measure space, and we may write $$s=\sum_{r\in T} x_r \chi_{S_r}$$ and $$t=\sum_{r\in T}y_r\chi_{S_r}$$ for some numbers $x_r$ and $y_r$. Now we have written $s$ and $t$ as linear combinations of the same, disjointly supported charcteristic functions, $(\chi_{S_r})_{r\in T}$. From here to the end, it should be okay.