Where there are several operations within an equation, it is helpful to identify the operations and the order we should do them in.
In this example, there is addition and multiplication.

When solving for a variable, we do the order of operations backward.
The order of operations is as follows:
- Parentheses
- Exponents
- Multiplication & division
- Addition and subtraction
Step 1: Going backward we start by undoing the addition and subtraction:
In the equation \(5{\text{M}} + 2 = 12\) we need to remove the addition of the \(+2\) from the left-hand side. We do this by adding the additive inverse to both sides. The additive inverse of \(+2\) is \(-2\).

The \(+2\) and \(-2\) add to zero, so we are left with \(5{\text{M}}\) on the left side.
The \(12\) and \(-2\) add to \(10\) on the right side.

Step 2: Undo any multiplication or division
The \(5\) is currently being multiplied to the \({\text{M}}\). We need to remove this to get \({\text{M}}\) all by itself. We do this by multiplying both sides of the equation by the multiplicative inverse of \(5\).
The multiplicative inverse of \(5\) is \(\frac{1}{5}\).
\(5{\text{M}} = 10\)
\({\color{Cyan} \frac{1}{5}}\left ( 5{\text{M}} \right ) = \left ( 10 \right ){\color{Cyan} \frac{1}{5}}\)
Since \(\frac{1}{5} \times 5 = 1\), we are left with \(1{\text{M}}\). Anything multiplied by \(1\) is still itself, so \(1{\text{M}} = {\text{M}}\).
\({\color{Cyan} \frac{1}{5}}\left ( {\color{DarkGreen} 5}{\text{M}} \right ) = \left ( 10 \right ){\color{Cyan} \frac{1}{5}}\)
\({\color{Cyan} \frac{1}{5}}\cdot{\color{DarkGreen} \frac{5}{1}}\left ( {\text{M}} \right ) = \left ( 10 \right ){\color{Cyan} \frac{1}{5}}\)
\(\frac{{\color{Cyan} 1}*{\color{DarkGreen} 5}}{{\color{Cyan} 5}*{\color{DarkGreen} 1}}\left ( {\text{M}} \right ) = \left ( 10 \right ){\color{Cyan} \frac{1}{5}}\)
\(\frac{{\color{Orange} 5}}{{\color{Orange} 5}}\left ( {\text{M}} \right ) = \left ( 10 \right ){\color{Cyan} \frac{1}{5}}\)
\({\color{Orange} 1}{\text{M}} = \left ( 10 \right ){\color{Cyan} \frac{1}{5}}\)
In the previous image, multiplication is written in several different ways.
- A number and a variable right next to each other without any other operations between them means they are being multiplied together. Ex: \(5{\text{M}}\)
- Parentheses are used to show multiplication between the numbers inside the parentheses and the numbers outside the parentheses.
- A dot is used between the fractions showing they are being multiplied together.
- The \(*\) symbol is used within the fraction to show multiplication between the numbers in the fraction.
We now have \({\text{M}}\) all by itself on one side of the equal sign. The next step is to simplify the other side of the equal sign.
\(\left ( 10 \right )\left ( \frac{1}{5} \right )\) is the same as \(\frac{10}{5}=2\).

Our final solution: \({\text{M}} = 2\)