John and Mary leave the house at same time and drive in opposite directions. John drives at 60 mph and travels 35 mi farther than Mary, drives at 40 mph. Mary's trip takes fifteen minutes longer than John's. For what length of time each of them drives?