In my opinion, this is one of these silly questions that makes no real sense. You have to know what practical elements the questioner intends you to ignore and what elements to focus on. Physics is supposed to model the real world, but an absurd question like this blatantly ignores the practical realities.
Anyway, you are supposed to concentrate on conservation of momentum. But, once something has momentum on a frictionless surface, it's not going to stop. So, you are supposed to assume that the farmer and ox move very slowly and bump into each other and stop. So, the question is asking how far the ox has moved when they bump into each other.