The black line is supposed to be that way. Not connected to anything. Its for venting purpose and its under the kick panel to prevent sucking of any dust etc. since that are is pretty much clean and dust free.
Cant help you with other line. check the vac diagram.
One penny saved is three penny earned.
1985 300D Turbo 179,000miles