Without further information about the "kingdom" or the structure of its paths, it is not possible to determine the number of paths of length 2 in terms of n.
Can you please provide more information or context about the problem, such as a definition of the "kingdom" or a description of the possible paths?