In order to solve this, we can use trigonometric ratios. The cosine ratio is given by the following formula:

Where ca is the adjacent leg to angle θ and hy is the length of the hypotenuse. In this case, θ=50°, ca = 6 and hy = x.
By replacing these values into the above formula, we get:

From this equation, we can solve for x to get:

Then, x = 9.3