For the triangle BMW, where M is 90 degrees, the hypotenuse is 13 and the leg BM is 5, find cos W.

by Pythagoras, you can find MW = 12

then cosW = 12/13