5 different roads from city A to city B and 5 different roads from city B to city C. In how many ways can someone go from city A to city C passing by city B?