Let ABC is a triangle with AD as its bisector. Points M and N lie on AB and AC such that angle ABC=angle ADM and angle ACB=angle ADN. If AD and MN intersects at point P and AB=8, AC=9, and AP=3, determine the length of AD