QR = 8 cm and PR = 10 cm.