Consider there are three directions $S_1$, $S_2$ and $S_3$ of a road junction.
Suppose $m_i$ is the number of cars coming from $S_i$ direction towards the junction.
Similarly, suppose $n_i$ is the number of cars going to $S_i$ direction via the junction.
Question is to determine how many cars going from $S_i$ to $S_j$ where $i\neq j$. Here $i,j \in \{1,2,3\}$.
Any help is highly solicited.