We can first construct a right triangle, using the 500 m length of hill as our hypotenuse. Using the fact that the cosine of an angle is the ratio of the adjacent side to the hypotenuse, we see that
where x is the horizontal distance covered. Solving for x, we find this horizontal distance to be