We are given the following

we want to express m in terms of the other variables. So, what we will do is apply math operations on both sides, so we "isolate" the m variable on one side of the equation.
So, we begin by factoring the m on the right side, so we get

Now, we divide both sides by (a+3x). So we get

which is our final answer.