You may have correctly used the definition of cosine, but you did not use the Pythagorean Theorem. You can draw a triangle with and
. Then use the Pythagorean Theorem to find the length h, of the hypotenuse:
Solve this equation for h. Then use the definition of cosine. The correct answer is .