The task is to generate the correct answer for a given math problem.

Problem: a person x started at 3 hours earlier at 40 km / h from a place p , then another person y followed him at 60 km / h . started his journey at 3 o ' clock , afternoon . what is the diference in time when x was 30 km ahead of y and when y was 30 km ahead of x ?
3 h