Let M be the midpoint of side \overline{AB} of \triangle ABC. Angle bisector \overline{AD} of \angle CAB and the perpendicular bisector of side \overline{AB} meet at X. If AB = 40 and MX = 9, then how far is X from line {AC}?