% inv op template
\documentclass[varwidth]{standalone}
\usepackage{amsmath}
\usepackage[normalem]{ulem} % [normalem] prevents the package from changing the default behavior of `\\emph` to underline.
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{align*}

\begin{document}
    \begin{varwidth}{0.25\paperwidth}
    \begin{align*}
    4(x + 3) &= 24\\
    \frac{4(x+3)}{4} &= \frac{24}{4}\\
    x + 3 &= 6\\
    x + 3 - 3 &= 6 - 3\\
    x &= 3\\
\end{align*}
\end{varwidth}

\end{document}
