What is the median of the data set?

32, 37, 38, 40, 50, 52, 55, 57

A. 23

B. 40

C. 57

D. 45