A train left the terminal with some passengers. At Station A, 1/3 of these passengers alighted and 50 passengers boarded the train. At Station B, 114 passengers alighted and 15 passengers boarded the train. Then, the number of passengers in the train became 20% of the number of passengers on board when it left the terminal. How many passengers were there on board the train when it left the terminal?

The number of passengers on board the train when it left the terminal is 300.