From the figure, we have QR=QT+TR.
To find : QT and TR.
In the right angled triangle PTQ,
∠PTQ=90o [PT is attitude]
By Pythagoras Theorem, PQ2=PT2+QT2
∴PQ2−PT2=QT2
∴QT2=252−152=625−225=400 ...(1)
Similarly, in the right angled triangle PTR,
by Pythagoras Theorem, PR2=PT2+TR2
∴TR2=PR2−PT2
=172−152
=289−225=64
TR=√64=8cm ...(2)
From (1) and (2)
QR = QT + TR = 20 + 8 = 28 cm.