question: If there are two trains in total traveling in the same direction.
#1 return trains 
#2 return direction that #1 are traveling 
#3 return #1 where  #2 is the  same 
#4 return number of  #3 
#5 return if  #4 is equal to  two