AB has two teams and two games (A versus B and B versus A).
The above situation is a double cycle, so you can draw inferences from other cases.
Single cycle formula: (n(n- 1))\2
Bicyclic molecular formula: n(n- 1)