When triangle ABC is similar to triangle PQR, with A, B, and C corresponding to P, Q, and R, respectively, it is customary to write ABC ∼ PQR. Suppose that AB = 4, BC = 5, CA = 6, and RP = 9. Find PQ and QR.