John and Mary leave their house at the same time and drive in opposite directions. John drives at 50 mi/h and travels 35 mi farther than Mary, who drives at 40 mi/h. Mary's trip takes 15 min longer than John's. For what length of time does each of them drive? (Round each answer to two decimal places.)