set $\mathcal{a}$ consists of $m$ consecutive integers whose sum is $2m$, and set $\mathcal{b}$ consists of $2m$ consecutive integers whose sum is $m$. the absolute value of the difference between the greatest element of $\mathcal{a}$ and the greatest element of $\mathcal{b}$ is 99. find $m$.