The revenue will be split among all the railways.
The revenue will be shown in Kurnool station and SCR's earnings. However, later on, it will be split among all the zones your train will pass through, based on the distance traveled in each zone. SWR will get 5% of the revenue as it maintains the train.