Quantum mechanics at work! :)
There are actually no way to derive by which split the particle has passed. Physicists have designed all over the time very sophisticated means to get an answer to that question, but without any success. As soon as you try, ciao, no more interferences.
It is so spooky lol
But it works!
Ya you can't argue it! lol