$$ L= \left( \begin{array}{cc} A & B \\ C & D \end{array} \right) $$
$$ RLL=LLR $$
$$ T=\operatorname{tr} L=A+D $$