In a certain Algebra 2 class of 30 students, 7 of them play basketball and 19 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 need to add the number of students who play basketball to the number of students who play baseball and then subtract the number of students who play both sports to avoid double-counting.

Number of students who play basketball = 7
Number of students who play baseball = 19
Number of students who play both sports = 5

Total number of students who play basketball or baseball = 7 + 19 - 5 = 21

Therefore, the probability that a student chosen randomly from the class plays basketball or baseball is 21/30, which simplifies to 7/10 or 70%.