In the diagram, PQ and QR are tangents to the circle, with centre O at P and R respectively. Find the value of x.