In a high school graduating class of 100 students, 42 studied math, 68 studied psychology, 54 studied history, 22 studied both math and psychology, 7 studied history and neither math nor pyschology, 10 studied all three and 8 did not take any of the three subjects What is the probability that the student takes math only?