given the information on the problem, we can draw the following diagram:
then, we can use the cosine function to find the distance from the stake to the foot of the post:
[tex]\begin{gathered} \cos (36)=\frac{\text{adjacent side}}{hypotenuse}=\frac{x}{24} \\ \Rightarrow x=24\cdot\cos (36)=19.4 \\ x=19.4 \end{gathered}[/tex]therefore, the distance is 19.4 m