Let $\mathbf{A}$ and $\mathbf{B}$ be $2 \times 2$ matrices such that $\det \mathbf{A} = -1$ and $\det \mathbf{B} = 3.$  Find $\det (3 \mathbf{A} \mathbf{B}).$
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Let $\mathbf{A}$ and $\mathbf{B}$ be $2 \times 2$ matrices such that $\det \mathbf{A} = -1$ and $\det \mathbf{B} = 3.$  Find $\det (3 \mathbf{A} \mathbf{B}).$
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
-27
Let $\mathbf{A}$ and $\mathbf{B}$ be $2 \times 2$ matrices such that $\det \mathbf{A} = -1$ and $\det \mathbf{B} = 3.$  Find $\det (3 \mathbf{A} \mathbf{B}).$
train