Apply T to the vectors of B and write the result as a lin. combination of the vectors in C, and then take the transpose of the coefficients matrix. For example:
the first COLUMN (from the left) of the wanted matrix is
Now you do something simmilar with the second element of B and find the second column of the wanted matrix for T.