Thank you for the opportunity to help you with your question!
It can be solved using the following theorem which is secant theorem
"If two secant segments are
drawn to a circle from the same external point, the product of
the length of one secant segment and its external part is equal
to the product of the length of the other secant segment and its
Here the same point is G.
Using the above theorem
We have DG=x+3+5=x+8
Solve for x
We have DG=x+8 =4+8=12(answer)
If you are satisfied then rate my answer so that I can help you in the future more.Thanks