8/x=24/(x-4)
Just cross-multiply and we get that
8 ( x - 4) = 24x simplify
8x - 32 = 24x subtract 8x from both sides
-32 = 24x - 8x
-32 = 16x divide both sides by 16
-32/16 = x
-2 = x