Function to return the time when both the persons will meet for the first time
function firstTime ( Length , Speed1 , Speed2 ) { var result = 0 ; var relativeSpeed = Math . abs ( Speed1 - Speed2 ) ; result = ( Length / relativeSpeed ) ; return result ; }