FWIW, the St. Ives conundrum isn’t a numbers problem, it is a logic problem.
One.
As you say it is a conundrum. However, the answer is indeterminate as it is not clear whether the man he met was also going to St. Ives or somewhere else. Perhaps the term “met” can be interpreted that they were going in opposite directions but, again, maybe not.