The mathematics department of a college has 7 male professors, 10 female professors, 12 male teaching assistants, and 8 female teaching assistants. If a person is selected at random from the group, find the probability that the selected person is a professor or a male.