The side length 24 (left triangle) corresponds to the side length 18 (right triangle), so the ratio of all corresponding sides of the left triangle to right triangle are 24/18 = 4/3
Length 27 corresponds to length y
so 27 4
---- ---
y 3
y = 20.5
Length 39 corresponds to length x-6
so 39 4
---- = ----
x-6 3
117 = 4x - 24
141 = 4x
35.25 = x