In a certain Algebra 2 class of 24 students, 15 of them play basketball and 7 of them play baseball. There are 5 students who play both sports. What is the probability that a student chosen randomly from the class plays basketball or baseball?

To find the probability that a student chosen randomly from the class plays basketball or baseball, we must first find the total number of students who play basketball or baseball.

Total number of students who play basketball = 15
Total number of students who play baseball = 7
Number of students who play both basketball and baseball = 5

To find the total number of students who play basketball or baseball, we can use the principle of inclusion-exclusion:

Total = number of students who play basketball + number of students who play baseball - number of students who play both sports
Total = 15 + 7 - 5
Total = 17

Therefore, there are 17 students who play either basketball or baseball in the class.

The probability that a student chosen randomly from the class plays basketball or baseball is:

Probability = Number of students who play basketball or baseball / Total number of students in the class
Probability = 17 / 24
Probability = 0.7083

Therefore, the probability that a student chosen randomly from the class plays basketball or baseball is 0.7083 or approximately 70.83%.