To compute the probability, we need to get first the total number of selected students in 12th grade. We have
Out of this number of 12th-grade students, 28 students prefer math. To get the probability, divide this number by the total number of students in 12th grade. We have
Answer: 0.412