It appears that you correctly knew to use cosine to set up an equation. You may have made a mistake in setting up the diagram first. If you draw a horizontal line from the top of the peg to the pole, you will form a right triangle. The length of the vertical leg of this triangle is feet. This is the side adjacent to the angle.