Answer:
I just had this problem on a test! I hope this helps, i will attach a picture of my messy work, but hopefully that will give you an idea on how do do it!
How to Solve!-
Repeat this distance formula for each side
106 is the answer to this question
-16 = 8x/5......8x/5 is the same as 8/5(x)
-16 = (8/5)x...divide both sides by 8/5
-16 / (8/5) = x
-16 * 5/8 = x
-80/8 = x
-10 = x <===
Make equal to 0
minus 12from both sides
x^2+10x+13=0
we can't factor so use quadratic formula
x=

x=

x=

x=

x=

x=

x=

or

aprox
x=-1.5359 or -8.4641