OPM CE Isometric Bolts&Gaskets

Qeustion:

When having two lines connecting w a flange connection, what rules apply to which line contains the Gasket and bolts ?