1. Draw a sketch. (see attachment)

2. You are dealing with a right triangle whose height is 9.

According to the Euclidean geometry the product of the two hypotenuse segments equals the square of the height.

That means you have to solve for x:

3. You'll get two integer results which add up to 30.