If all their memories were wiped clean as stated they would, the only thing I can think of is she took a guess and got it right...showing that from the enemies they once were that was shown a few minutes ago in the episode, they've come so close she can guess some of his secret moves...even though the idea wasn't his.
Or maybe it was just the writers way to mess with our heads and have continued debate on the question eight years after it aired?