P(brown hair) + P(blue eyes) - P(brown hair and blue eyes) + P(neither brown hair nor blue eyes) = 30
15 + 17 + 6 - P(brown hair and blue eyes) = 30
P(brown hair and blue eyes) = 38 - 30 = 8
Therefore, there are 8 students that have brown hair and blue eyes.