Make n the subject of the formula:
M=3n
M=3n