Independently derived graph-reading solution.
Locate $20 on the vertical taxi-fare axis (halfway between $16 and $24). Move horizontally to the fare graph, then vertically down to the distance axis. The distance is 8 km.
Check in the other direction: the plotted point at 8 km has a fare of $20.