solve for x

5 + x 10
----- = ----
x 8

I am going to take a guess that you meant

(5 + x)/x = 10/8

In that case ....
10x = 40 + 8x
2x = 40
x = 20