I have given two square matrices $T_1$, $T_2$ and a basis $B$ such that $B^{-1}T_i B$, $i=1,2$, has block upper triangular form, i.e. $$B^{-1}T_i B= \left[\begin{matrix} Q_i & \ast & \ast \\ 0 & 2 & \ast \\ 0 & 0 & 1 \end{matrix}\right], $$ where $Q_i$ are square matrices and $\ast$ stands for anything. I am trying to find a basis $\tilde{B}$ such that $\tilde{B}^{-1}T_i \tilde{B}$, $i=1,2$, has block upper triangular form with eigenvalues $1$ and $2$ interchanged, i.e. $$\tilde{B}^{-1}T_i \tilde{B} = \left[\begin{matrix} \tilde{Q}_i & \ast & \ast \\ 0 & 1 & \ast \\ 0 & 0 & 2 \end{matrix}\right] $$
I do not know how to construct the matrix $\tilde{B}$ from $B$.
Any help is appreciated.