In the figure shown below, ABC is an equilateral triangle. The perpendicular distances from A, B, and C to the horizontal line shown are 5, 16, and 18 units respectively. Find the length of a side of triangle ABC.