Sounds like your teacher posed the
Mice Problem. I will try my best to work on that problem, myself. All I can do right now is point you in the right direction for researching the problem. As for the problem you created, the solution is a type of
pursuit curve.