Answer
8
Work Step by Step
There are 2 major roads from city X
to city Y and 4 major roads from city Y to city Z. How
many different trips can be made from city X to city Z,
passing through city Y?
The total number of ways is the product of the separate variations
$2\times4=8$