For this case we have to define trigonometric relations of rectangular triangles that the cosine of an angle is given by the leg adjacent to the angle on the hypotenuse of the triangle. Then, according to the figure we have:

So:

Rounding off we have that B is 46 degrees
Answer:
46 degrees