I'm relatively new at LaTeX. I've read material online and have been practicing. However, I have not been able to find a solution to two of my questions. I'm hoping someone may be of assistance. This is what I have...
\begin{align}
-4(-5+6x) & = \hspace{1mm} 188 \\
(-4 \times -5) + (-4\times6x) & = \hspace{1mm} 188 \\
20-24x & = \hspace{1mm} 188 \\
-20\hspace{11.8mm} & \hspace{3.5mm} -20 \\[-11pt]
\cline{1-2}
-24x & = \hspace{1mm} 168 \\
\dfrac{\cancel{-24} x}{\cancel{-24}} & =\dfrac{168}{-24}\\
x & = -7
\end{align}
My question is regarding the horizontal line. How can I minimize the distance? I would like for the horizontal line to line up, so to speak, directly under the -20 from line (4), that being the -20 on the left hand side of the equality. Also, I would like for it to end directly under the 0 from the -20 on line (4), that being the -20 on the right hand side. Furthermore, in line (6), how can I align the 4 from the right hand side of the denominator so that it is directly under the 8 of the numerator, that being the right hand side as well.
Thanks,
Miguel

