Explanation:
even though the line segment pieces of the horizontal and the inclined lines are of different lengths, but the ratio between the pieces of the same line must be the same.
in other words
x/27 = (32-18)/18 = 14/18 = 7/9
9x/27 = 7
x/3 = 7
x = 7×3 = 21