We divided both sides by A, then subtracted 1 from both sides. Finally, we swapped sides so that M was the subject of the formula.