Let us draw a figure below from the given question.
Let AB = 24 ft and CD = 6 ft be the height of the pillar and man respectively.
Here ∠ ACE = ∝ ∠ CBD = 90° - ∝
Now from right triangle CDB,
BD = 6 cot (90° - ∝) = 6 tan ∝
∴ tan ∝ = BD/6 ...............(i)
From right triangle ACE,
tan ∝ =18/EC = 18/BD ...............(ii) (∵ EC = BD)
Now from (i) and (ii) we get,
BD/6 = 18/BD
⇒ BD2 = 18 x 6
∴ BD = 6√3 ft.
Hence, distance between pillar and man = 6√3 ft