The vacuum line pointing up (obvious in the photo) is the vacuum advance, and is connected to the intake manifold. There may be some sort of control valve in the path, for emission control. The other one, pointing toward the distributor body is a retard line which is definitely for emission control, and should be modulated by a device somewhere.
To get it right, you're going to need to look up the vacuum line routing diagram for your specific car in the service manual.
To get it right, you're going to need to look up the vacuum line routing diagram for your specific car in the service manual.