Use the definition of cosine to find the known sides of the unit circle right triangle. The quadrant determines the sign on each of the values.
Find the opposite side of the unit circle triangle. Since the adjacent side and hypotenuse are known, use the Pythagorean theorem to find the remaining side.