You may have used the definition of cotangent, but you incorrectly used the Pythagorean Theorem to find b. The correct equation is:
After solving this equation, substitute the value of b for the opposite side in the definition of cotangent.