A train train when moves at an average speed of 40 kmph, reaches its destination on time. When its average speed becomes 35 kmph, then it reaches its destination 15 minutes late. Find the length of journey.