Gabriel went to Los Angeles, California, for the summer to visit his cousins. He used a map of bus routes to get from the airport to his cousin's house. The distance from the airport to his cousin's house is 40 miles. On his map, the distance was 5 inches. What is the scale factor?