By the tangent-chord angle in
ω1 (tangent
AC, chord
AK),
∠KAC=∠KBA, and in
ω2 (tangent
AB, chord
AK),
∠KAB=∠KCA. Write
u=∠KAC and
v=∠KAB, so
u+v=∠A. Triangles
KAB and
KCA then have
∠KAB=v=∠KCA and
∠KBA=u=∠KAC, so
△KAB∼△KCA. With
t=AK this gives
tKB=KCt=CAAB=97, so
KB=97t and
KC=79t. Also
∠AKB=∠AKC =180∘−u−v =180∘−∠A, so
∠BKC=360∘−2(180∘−∠A) =2∠A.
From the law of cosines in
ABC, cosA=2⋅7⋅949+81−64=2111, so
cos2A=2(2111)2−1=−441199. The law of cosines in triangle
BKC gives
64=8149t2+4981t2−2t2cos2A=t2⋅39692401+6561+3582=396912544t2, so
t2=1254464⋅3969=1963969 and
t=1463=29.
Hence
AK=29 and
m+n=9+2=11.