In $\triangle ABC$ with $AB=12$, $BC=13$, and $AC=15$, let $M$ be a point on $\overline{AC}$ such that the incircles of $\triangle ABM$ and $\triangle BCM$ have equal radii. Let $p$ and $q$ be positive relatively prime integers such that $\frac{AM}{CM}=\frac{p}{q}$. Find $p+q$.