Final answer:
To find the probability that a student chosen randomly from the class plays basketball or baseball, we add the number of students who play basketball and baseball and divide it by the total number of students.
Step-by-step explanation:
To find the probability that a student chosen randomly from the class plays basketball or baseball, we need to find the number of students who play either sport and divide it by the total number of students.
Let's denote:
B = number of students who play basketball = 15
C = number of students who play baseball = 7
N = number of students who play neither sport = 8
Therefore, the total number of students is 25 (B + C + N = 15 + 7 + 8 = 25).
The probability that a student plays basketball or baseball is:
P(B or C) = (B + C) / Total number of students
P(B or C) = (15 + 7) / 25
P(B or C) = 22 / 25
Hence, the probability that a student chosen randomly from the class plays basketball or baseball is 22/25.