In a class with 50 students, 25 of the students are female, 15 of the sudents are mathematics majors, and 10 of the mathematics majors are female. If a student in the class is to be selected at random, what is the probability that the student selected will be female or a mathematics major or both?