I'm having trouble understanding this problem:

There is a circular town of unknown diameter having four gates located exactly at the north, east, south and west of the town. A tall tree stands 3 li (Note: 1 li = .33 mi) from outside the north gate. When you exit the south gate and turn dues east, you must walk 9 li before you can see the tree.

a. Draw a diagram on your own graph paper to represent this problem. (Hint: You need to set up two right triangles in your diagram to solve this problem.)

I've done this part.

b.Show that the radius, r, of the town must satify the polynomial equation

OK. This part I am confused on...

c. What is the diameter?

I found out the the diameter to be 9 li by using my Calculator and plugging that equation into it. It turns out that when r = 4.5 it satisfies the problem.

My problem is that I don't understand how you get 4.5 li as the radius. And I need to show work for this problem.