If you want to work out the steps to solve an equation in \LaTeX see the example below.
Use the aligned environment to type a multi-line equation. You can add & to preserve the vertical alignment of the = by typing &= instead of just =. The end of each line in this environment should have a double slash \\. Note that the equation begins and ends with \begin{aligned} and \end{aligned} and do not use \\ for the last line. Use \boxed{} to draw a rectangle around text.
\begin{aligned} 3x + 2 &= x - 5 \\ 3x + 2 {\color{red} -x} &= x - 5 {\color{red}- x} &\text{ subtract $x$ from both sides} \\ 2x + 2 &= -5 \\ 2x + 2 {\color{red} - 2} &= -5 {\color{red} -2} &\text{Subtract $2$ from both sides} \\ 2x &= -7 \\ {\color{red}\dfrac{{\color{black}2x}}{2}} &= {\color{red}\dfrac{{\color{black}-7}}{2}} &\text{ Divide by 2 to isolate $x$}\\ x = -\dfrac{7}{2} \\[2pc] 3{\color{red}\left(\dfrac{-7}{2}\right)} + 2 &= {\color{red}\left(\dfrac{-7}{2}\right)} - 5 &\text{Substitute ${\color{red}\dfrac{-7}{2}}$ in for $x$ to check}\\ -\dfrac{21}{2} + \dfrac{4}{2} &= \dfrac{-7}{2} - \dfrac{10}{2} \\ -\dfrac{17}{2} &= -\dfrac{17}{2}\checkmark&\text{ So, $\boxed{x = -\dfrac{7}{2}}$ satistifies the original equation!} \end{aligned}
Show an alternate way to solve 3x + 2 = x - 5 use labels to show how your work connects to the process shown here.