Two persons are running on a circular track either in the same direction or in the opposite direction, indefinitely.
The speed of both of them is given to you.
Speed will be positive in clockwise direction, and negative in anticlockwise direction.
Calculate the number of distinct points, at which they will meet on the circle
For example, if the speed are 1, 2 then the number of distinct points are 1 and if the speeds are 1, ?1, then number of distinct points are 2.
Assume the speeds to be x and y. I need a general solution.