The dialogs tell you where the mine cart has to go. Pull the levers until the path is straight to the next destination of the mine cart.