A circle is tangent to the x-axis iff , is tangent to the y-axis iff , and since the circle's center is in the first quadrant this means that the circle's equation is , and center at

Finally, the distance from a given point to a given line is given by . Do some maths now.

Tonio