In triangle PQR, let X be the intersection of the angle bisector of angle P with side QR, and let Y be the foot of the perpendicular from X to side PR. If PQ = 9, QR = 9, and PR = 12, then compute the length of XY.