OA=OT=a
PT=b
PQ=x
QA=1
since perimetr=8
so a+b+x+1+a=8..............i
anle QOA=angle QOT=β
so tan2β=x+1a........ii
tanβ=1/a...........................iii
b=√(x2-1).............iv
triangle PTQ is similar to triangle POA
SO a+bx=a1........v
now solve