Segments AB and BC are both tangent to the circle shown above. What is the value of x? *Note: photo not necessarily to scale

In right triangle OAB and right triangle OCB above.
[tex]OA=OC[/tex]Therefore,
[tex]\begin{gathered} m\angle OAB=m\angle OCB=90^0 \\ Then, \\ OB=OB \end{gathered}[/tex]Hence,
[tex]\begin{gathered} Rt\Delta OAB\cong Rt\Delta OCB \\ \therefore AB=CB \end{gathered}[/tex]Then,
[tex]\begin{gathered} x^2+3=12 \\ x^2=12-3=9 \\ x^2=9 \\ x=\sqrt{9}=3 \end{gathered}[/tex]Hence,
[tex]x=3[/tex]