We just need to make this into a triangle, then knowing that it is a right triangle and knowing the length/height we can use the Pythagorean Theorem to solve for the distance.
To find c we can use the Pythagorean Theorem (a^2 + b^2 = c^2)
a^2 + b^2 = c^2
3^2 + 6^2 = c^2
9+36=c^2
45=c^2
√45 = c
c = √45
or
c ≈ 6.7