In this figure there are two triangle △PORand△POQ in both the triangle angle made at O is right angle .
Let the length of OR be x unit.
Apply pythagoras theorm for both the triangle
Int(PQ)2=(OQ)2+(OP)2⇒172=(x+9)2+(OP)2⇒(OP)2=172−(x+9)2
(PR)2=(OR)2+(OP)2⇒102=x2+(OP)2⇒(OP)2=102−x2
Since it is clear that the OP is same in both the equations ,so we can equate both the equations
172−(x+9)2=102−x2⇒289−100=x2+18x+81−x2⇒189−81=18x⇒18x=108⇒x=6