
By the angle bisector theorem,
AE=2713⋅15 and
CD=2914⋅13, so
E lies on
AN and
D lies on
MC, with
NEMD=AN−AE=215−965=185,=CM−CD=213−29182=5813.
Since
AMPN is cyclic,
∠ENP=∠ANP =180∘−∠AMP =∠DMP, and since
AEPD is cyclic,
∠NEP=180∘−∠AEP =∠ADP =∠MDP. Hence triangles
ENP and
DMP are similar, so
MPNP=MDNE. By the law of sines in triangles
ANP and
AMP, whose angles
∠ANP and
∠AMP are supplementary,
sin∠CAQsin∠BAQ=sin∠MAPsin∠NAP=MPNP=5813185=117145.
Comparing the areas of triangles
ABQ and
ACQ, which share the cevian
AQ, CQBQ=[ACQ][ABQ]=ACsin∠CAQABsin∠BAQ=1315⋅117145=507725, which is in lowest terms since
507=3⋅132 and
725=52⋅29. Thus
m−n=725−507=218.