Cosine is used in this problem because the adjacent side is known and we need to find the length of the hypotenuse.