In Friedberg et al. Linear Algebra there is an example that asks to find the matrix of the linear operator in the standard basis which reflects vectors of $\mathbb{R}^2$ across the line $y=2x$.
Identifying that we can reflect across any line $y=mx$ by $(x,m)\mapsto(-m,x)$ we may choose the basis $\mathcal{B'}=\{\binom{1}{2},\binom{-2}{1}\}.$
The text next claims that the operator $T$ in this basis is given by $$[T]_{\mathcal{B'}}=\begin{pmatrix}1&0\\0 &-1\end{pmatrix}.$$
However, I'm not understanding why the matrix in the basis $\mathcal{B}'$ is the matrix above. Could anyone shed some light on my point of confusion?