The vectors $\begin{pmatrix} 1 \\ - 1 \\ 2 \end{pmatrix},$ $\begin{pmatrix} 2 \\ 4 \\ 1 \end{pmatrix},$ and $\begin{pmatrix} a \\ 1 \\ c \end{pmatrix}$ are pairwise orthogonal.  Enter the ordered pair $(a,c).$
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The vectors $\begin{pmatrix} 1 \\ - 1 \\ 2 \end{pmatrix},$ $\begin{pmatrix} 2 \\ 4 \\ 1 \end{pmatrix},$ and $\begin{pmatrix} a \\ 1 \\ c \end{pmatrix}$ are pairwise orthogonal.  Enter the ordered pair $(a,c).$
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
(-3,2)
The vectors $\begin{pmatrix} 1 \\ - 1 \\ 2 \end{pmatrix},$ $\begin{pmatrix} 2 \\ 4 \\ 1 \end{pmatrix},$ and $\begin{pmatrix} a \\ 1 \\ c \end{pmatrix}$ are pairwise orthogonal.  Enter the ordered pair $(a,c).$
train