Five people each write a positive integer on a piece of paper. If the average of these five integers is 8, what is the greatest possible value of one of these integers?

A. 36
B. 38
C. 39
D. 40