Suppose that $\triangle ABC$ has side lengths $AB = 20$ and $AC = 19$. Furthermore, let the incircle $\omega$ of $ABC$ touch segments $BC$, $CA$, $AB$ at points $D$, $E$, and $F$ respectively. Let $AD$ hit $\omega$ at a point ($P \neq D$). Suppose that $DF$ intersects the circumcircle of $CDP$ at a point ($Q \neq D$). Let line $CQ$ intersect $AB$ at point $M$. If we are given that $ \frac{AM}{BM} = \frac{5}{6} $, then the perimeter of triangle $ABC$ can be expressed as $ \frac{m}{n} $ where $m$ and $n$ are relatively prime positive integers. Find the value of $m+n$.
I have tried by applying Menelaus theorem,
Menelaus in $\triangle CBM$ with $DKA$ as a transversal $\frac{CD}{DB}\cdot \frac{AB}{AM}\cdot \frac{MK}{KC} = 1$ therefore $\frac{CD}{DB} \cdot \frac{MK}{KC} = \frac{5}{11}$. Same I tried to apply in $\triangle ABD$ , with $MKC$ as a transversal, and got therefore $\frac{BC}{DC} \cdot \frac{KD}{AK} = \frac{6}{5}$. $ Perimeter(\triangle ABC) = 39 + BC$. Can anyone help me to proceed?



I Have 0 reputation hence am unable to add a comment. But I wanted to note that this would be possible using barycentric coordinates, since you would know coordinates of $M$ and hence $Q$ in terms of $1$. $D$ and $F$, which depends on third side; $2$. circumcircle of $CDP$, which also depends. Then solving this one var. equation you'll be done