Example: from Kyoto Station to Nijo-jo Castle.
Departing Station: Kyoto Station
Arriving Station: Nijo-jo mae Station
The 当駅(toueki) and the red circle indicate the station you are currently at.
The number on top is the adult fare and the one below it is the child fare.
Purchase the ticket that corresponds with the amount of fare required for your destination.