\begin{minipage}{0.55\textwidth}
  \refstepcounter{minipagecount}
  \noindent{(\theminipagecount)}\quad
  \begin{tikzpicture}[scale=1.5, baseline=(current bounding box.north)]
      \pgfmathsetmacro{\angleA}{<<angleAValue>>}
      \pgfmathsetmacro{\angleB}{<<angleBValue>>}
      \pgfmathsetmacro{\angleC}{<<angleCValue>>}
      \pgfmathsetmacro{\sideC}{<<sideCValue>>}
      \pgfmathsetmacro{\rotationAngle}{<<rotationAngleValue>>}
  
    
      \begin{scope}[rotate=\rotationAngle]
        \coordinate (A) at (0,0);
        \coordinate (B) at (\sideC,0);
        \coordinate (C) at (intersection cs: first line={(A)--($(A)+(\angleA:4cm)$)}, second line={(B)--($(B)+(180-\angleB:4cm)$)});
        \draw (A) -- (B) -- (C) -- cycle;
        
        % Mark angles with arcs
        \draw ($(A)!0.3cm!(B)$) arc [start angle=0, end angle=\angleA, radius=0.3cm];
        \draw ($(B)!0.3cm!(C)$) arc [start angle=180-\angleB, end angle=180, radius=0.3cm];
        \draw ($(C)!0.3cm!(A)$) arc [start angle=180+\angleA, end angle=360-\angleB, radius=0.3cm];
        
        % Label angles
        \node at ($(A)!-0.15cm!(B)$) {<<angleALabel>>};
        \node at ($(B)!-0.15cm!(C)$) {<<angleBLabel>>};
        \node at ($(C)!-0.15cm!(A)$) {<<angleCLabel>>};
        
        % Mark angles in degrees
        \coordinate (midBC) at ($(B)!0.5!(C)$);
        \node at ($(A)!0.55cm!(midBC)$) {$\theta ^\circ$};
    
        \coordinate (midAC) at ($(A)!0.5!(C)$);
        \node at ($(B)!0.55cm!(midAC)$) {<<angleBValue>>$^\circ$};
    
        \coordinate (midAB) at ($(A)!0.5!(B)$);
        \node at ($(C)!0.55cm!(midAB)$) {<<angleCValue>>$^\circ$};
      
      \end{scope}
    \end{tikzpicture}
\end{minipage}%
\hfill
\begin{minipage}{0.4\textwidth}
    \begin{align*}
      \angle \text{<<angleALabel>>} &= 180^\circ - (\angle \text{<<angleBLabel>>} + \angle \text{<<angleCLabel>>}) \\
        &= 180^\circ - (<<angleCalcBValue>>^\circ + <<angleCalcCValue>>^\circ) \\
        &= 180^\circ - <<angleCalcBCValue>>^\circ \\
        &= <<angleCalcAValue>>^\circ
    \end{align*}
\end{minipage}

