Thanks for the question! For that first lock, the answer comes from what you read around the station rather than from conversation: the paperwork and signs matter more than the train times. The later puzzles in the full game lean much more on what the people at the station tell you. If you get stuck, the in-game hints help step by step, with no penalty.