Triangle ABC is similar to triangle PQR . AB corresponds to PQ and BC corresponds to QR. lf AB = 9, BC = 12, CA = 6, and PQ = 3, what are the lengths of QR and RP?