Train system for buying and selling tickets