In ΔABC, the measure of ∠C=90°, BA = 41, CB = 40, and AC = 9. What ratio represents the cosine of ∠B?