A library is equipped with a system of pneumatic tubes for sending documents from one to another of exactly six departments-G, H, L, M, S, and T. A tube line is a pair of tubes that connects one department with exactly one other department, with documents moving in one direction in one tube and in the opposite direction in the other tube. The library's system consists of the following seven tube lines and no others.
Line 1 connects H and L.
Line 2 connects H and S.
Line 3 connects L and T.
Line 4 connects S and T.
Line 5 connects M and T.
Line 6 connects L and M.
Line 7 connects G and H.
Use of the system is subject to the following restrictions:
Documents to be sent between departments that are not connected by a tube line can be transferred from one line to another at departments served by two or more lines, until the document reaches its destination.
A document cannot use any tube line more than once on its way to its destination, nor can the document return to its department of origin on its way to its destination.
How many triangles are there in the figure given below? 