AMC8 2024 Problem 14

The one-way routes connecting towns A, M, C, X, Y, and Z are shown in the figure below (not drawn to scale). The distances in kilometers along each route are marked. Traveling along these routes, what is the shortest distance from A to Z in kilometers?

Answer Choices
A. 28
B. 29
C. 30
D. 31
E. 32