Use the Pythagorean Theorem:
a² + b² = c²
(x + 3)² + (x)² = (√117)²
(x² + 6x + 9) + (x²) = 117
2x² + 6x + 9 = 117
2x² + 6x - 108 = 0
2(x² + 3x - 54) = 0
2(x + 9)(x - 6) = 0
2≠0, x + 9 = 0, x - 6 = 0
x = - 9, x = 6
Length cannot be negative so x = -9 is not valid.
Answer: x = 6