A directed network of four cities, A, B, C, and D, is represented by the adjacency matrix and its square shown below:
where rows 1 to 4 and columns 1 to 4 correspond to cities A, B, C, and D respectively.
Determine the total number of two-transfer routes (paths of length 3) starting and ending at city B.
[3]