Hello is not a word that can't tell while leaving.
Choose the sentence that goes against common sense.

a) "they have to say farewell to each other because they are leaving"
b) "they have to say hello to each other because they are leaving"