If Julian walks from his house to his school at a speed of 3 miles per hour he will be five minutes late for class. If he cycles to school at a speed of 10 miles per hour, he will be 16 minutes early for class. Find the distance from his house to his school.