A building contains 24 rooms in total. 7 of the rooms are on the top floor. 5 of th...

Check the final answer first, then review the worked steps.

Answer

\(\frac{7}{12}\)

Work

$|T \cup G| = 7 + 5 - 2 = 10$
$24 - 10 = 14$
$P = \frac{14}{24} = \frac{7}{12}$

Step-by-step solution

  1. Define the sets: Let $T$ be the set of rooms on the top floor and $G$ be the set of rooms with green walls. We are given $|T|=7$, $|G|=5$, and $|T \cap G|=2$.
  2. Find the number of rooms that are either on the top floor or have green walls using the Inclusion-Exclusion Principle: $|T \cup G| = |T| + |G| - |T \cap G| = 7 + 5 - 2 = 10$.
  3. Find the number of rooms that are neither on the top floor nor have green walls: $24 - |T \cup G| = 24 - 10 = 14$.
  4. Calculate the probability: $P = \frac{14}{24}$.
  5. Simplify the fraction: $\frac{14}{24} = \frac{7}{12}$.