If X = 18, Y = 80, and Z = 82, what is the cosine of B?

If X = 18, Y = 80, and Z = 82, what is the cosine of B?