Since circle touches both axis
⇒ equations of circle is of the form
(x – a)2 + (y – a)2 = a2
i.e. x2 + a2 – 2ax + y2 – 2ay + a2 = a2
i.e. x2 + y2 – 2ax – 2ay + a2 = 0
Since circle passes through (3, 6)
⇒ (3)2 + (6)2 – 2a(3) – 2a(6) + a2 = 0
i.e. 9 + 36 – 6a – 12a + a2 = 0
i.e. a2 – 18a + 45 = 0
i.e. a2 – 15a – 3a + 45 = 0
i.e. a(a – 15) – 3(a – 15) = 0
i.e. a = 3 or a = 15
i.e. (x – 3)2 + (y – 3)2 = 9
i.e. x2 + y2 – 2 × 3x – 6y + 9 = 0
i.e. x2 + y2 – 6x – 6y + 9 = 0
Hence, the correct answer is option C.