Given , S is the midpoint of QR .
PS is the median.
PQ2+PR2 = 2 PS2+2SR2 [By Apollonius theorem]
112+172 = 2×132+2×SR2
121+289 = 2×169+2×SR2
2SR2 = 121+289-338
2SR2 = 72
SR2 = 72/2 = 36
SR = 6
Since S is the midpoint of QR , QR = 2SR
QR = 2×6 = 12
Hence QR = 12 units.