The top one goes to the radiator and the bottom one is fed hot coolant before the radiator (typically from an outlet on your intake). Hotter fluids rise so to increase the efficiency of the heater core the bottom should be the inlet (keeps the core hotter longer for better heat exchange)