Here's another approach that doesn't assume that the dog and rabbit run at constant speeds (but their speeds are the same).
Suppose that after some time t>0 the dog has arrived at the point (x,y) and the rabbit has arrived at the point (0,r). Then the distance the dog has traveled is given by...