This one cannot be answered as written, because the eighth gym means something completely different depending on the game.
In the Pokémon series, gyms are ordered badges and the eighth is typically the strongest before the Elite Four, but which city it sits in, and what type its leader uses, changes with every generation and every remake. Other monster-collecting games have borrowed the gym structure entirely, so the same question could apply to any of them.
Tell us which game and which version you are playing and the route becomes straightforward to describe. In most Pokémon titles the gyms are also gated by story progress and by a required field move such as Surf or Waterfall, so being unable to reach the eighth is often a sign that a story event has been missed rather than a pathfinding problem.