Suppose that a certain college class contains 40 students. Of these 26 are juniors, 27 are history majors, and 10 are neither. A student is selected at random from the class.
(a) What is the probability that the student is both a junior and a history major?
(b) Given that the student selected is a junior, what is the probability that he is also a history major?
Write your responses as fractions.