Find a matrix of the form $\mathbf{M} = \begin{pmatrix} a & b \\ 0 & d \end{pmatrix}$ such that
\[\mathbf{M}^3 = \begin{pmatrix} 8 & -57 \\ 0 & 27 \end{pmatrix}.\]
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Find a matrix of the form $\mathbf{M} = \begin{pmatrix} a & b \\ 0 & d \end{pmatrix}$ such that
\[\mathbf{M}^3 = \begin{pmatrix} 8 & -57 \\ 0 & 27 \end{pmatrix}.\]
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
\begin{pmatrix} 2 & -3 \\ 0 & 3 \end{pmatrix}
Find a matrix of the form $\mathbf{M} = \begin{pmatrix} a & b \\ 0 & d \end{pmatrix}$ such that
\[\mathbf{M}^3 = \begin{pmatrix} 8 & -57 \\ 0 & 27 \end{pmatrix}.\]
train