For $T:U\to V$ and $S:V\to W$, use compatible bases $B,C,D$. Then $[S\circ T]_{D\leftarrow B}=[S]_{D\leftarrow C}[T]_{C\leftarrow B}$. The shared middle basis must match. The rightmost factor acts first.