We will use the ratio of tanget which is the opposite over the adjecent
The opposite side of angle B is 6
The adjecent side of angle B is 8
Since you are trying to find angles we will use the universe trig functions

The measurementof angle B is 36.9 degrees.