Correct. The ladder, the wall, and the ground form a right triangle. Let x represent the unknown distance, which is the side adjacent to the angle. You are given the length of the hypotenuse, so you can use cosine to set up an equation:

Solve the equation for x, then use a calculator to find a numerical value: