The matrix $\mathbf{M}$ satisfies
\[\mathbf{M} \begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 4 \end{pmatrix} \quad \text{and} \quad \mathbf{M} \begin{pmatrix} 3 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 \\ 2 \end{pmatrix} \quad.\]Find $\det \mathbf{M}.$
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The matrix $\mathbf{M}$ satisfies
\[\mathbf{M} \begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 4 \end{pmatrix} \quad \text{and} \quad \mathbf{M} \begin{pmatrix} 3 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 \\ 2 \end{pmatrix} \quad.\]Find $\det \mathbf{M}.$
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
-2
The matrix $\mathbf{M}$ satisfies
\[\mathbf{M} \begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 4 \end{pmatrix} \quad \text{and} \quad \mathbf{M} \begin{pmatrix} 3 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 \\ 2 \end{pmatrix} \quad.\]Find $\det \mathbf{M}.$
train