The equation we have is:
when we have the variable on both sides of the equation, what we need to do is move all of the variables to one side of the equation.
For example, in this case, to have all of the variables on the same side, we substract 5x to both sides:
On the right side 5x and -5x cancel each other, and we are left with:
Next, we add the like terms on the left side, 3x-5x is equal to -2x:
Since we need to solve for x, we substract 5 to both sides, to leave the variable term alone:
And finally, we divide both sides by -2:
Answer: x=12