Final answer:
The probability that a key opens a classroom or the teachers' lounge is 0.125.
Step-by-step explanation:
To find the probability that a key opens a classroom or the teachers' lounge, we need to calculate P(C or T), which represents the probability of event C (opening a classroom) or event T (opening the teachers' lounge).
From the given information, we know that 30 keys open both a classroom and the teachers' lounge. This means that out of the 80 keys, (60 - 30) = 30 keys open only a classroom, and (40 - 30) = 10 keys open only the teachers' lounge.
To calculate the probability P(C or T), we add the probabilities of event C and event T, and subtract the probability of both events occurring simultaneously (C and T):
P(C or T) = P(C) + P(T) - P(C and T)
Probability of opening a classroom (P(C)) = 30/80 = 0.375
Probability of opening the teachers' lounge (P(T)) = 10/80 = 0.125
Probability of both opening a classroom and the teachers' lounge (P(C and T)) = 30/80 = 0.375
Using the formula for P(C or T), we have:
P(C or T) = 0.375 + 0.125 - 0.375 = 0.125
Therefore, the probability that a key opens a classroom or the teachers' lounge is 0.125.