**HINT**
In the basis $\\{m_1,n,m_2\\}$ with $m_1\perp n$ and $m_2\perp n,m_1$ we have that
$$T_S=\begin{bmatrix}1&k&0\\\0&1&0\\\0&0&1\end{bmatrix}$$
**HINT**
In the basis $\\{m_1,n,m_2\\}$ with $m_1\perp n$ and $m_2\perp n,m_1$ we have that
$$T_S=\begin{bmatrix}1&k&0\\\0&1&0\\\0&0&1\end{bmatrix}$$