In a certain college, 30% of the students failed mathematics, 20% of the students failed chemistry, and 10% of the students failed both mathematics and chemistry. A student is selected at random. What is the probability that he failed mathematics or chemistry?