In triangle $PQR,$ $M$ is the midpoint of $\overline{PQ}.$ Let $X$ be the point on $\overline{QR}$ such that $\overline{PX}$ bisects $\angle QPR,$ and let the perpendicular bisector of $\overline{PQ}$ intersect $\overline{PX}$ at $Y.$ If $PQ = 36,$ $PR = 22,$ and $QR = 8,$ then find the area of triangle $PYR.$