To solve this problem, we need to calculate the probabilities of events \( A \), \( B \), and \( A \text{ and } B \) in the context of rolling two six-sided dice. First, determine the total number of outcomes in the sample space, which is \( 6 \times 6 = 36 \). Then, identify the outcomes that result in a sum of 8 (event \( A \)) and the outcomes that result in doubles (event \( B \)). Finally, find the outcomes that satisfy both conditions (event \( A \text{ and } B \)) and use the addition rule of probabilities to find \( P(A \text{ or } B) \).
The total number of outcomes when rolling two six-sided dice is calculated as:
\[
\text{Total Outcomes} = 6 \times 6 = 36
\]
The outcomes that result in a sum of 8 are:
\[
\text{Event A} = \{(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)\}
\]
The number of outcomes in Event A is \(5\).
The outcomes that result in doubles are:
\[
\text{Event B} = \{(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)\}
\]
The number of outcomes in Event B is \(6\).
The outcomes that satisfy both conditions (sum of 8 and doubles) are:
\[
\text{Event A and B} = \{(4, 4)\}
\]
The number of outcomes in Event A and B is \(1\).
Using the counts from the previous steps, we can calculate the probabilities:
\[
P(A) = \frac{5}{36} \approx 0.1389
\]
\[
P(B) = \frac{6}{36} = \frac{1}{6} \approx 0.1667
\]
\[
P(A \text{ and } B) = \frac{1}{36} \approx 0.0278
\]
Using the addition rule:
\[
P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)
\]
Substituting the values:
\[
P(A \text{ or } B) = \frac{5}{36} + \frac{6}{36} - \frac{1}{36} = \frac{10}{36} = \frac{5}{18} \approx 0.2778
\]
The probabilities are:
- \( P(A) \approx 0.1389 \)
- \( P(B) \approx 0.1667 \)
- \( P(A \text{ and } B) \approx 0.0278 \)
- \( P(A \text{ or } B) \approx 0.2778 \)
Thus, the final answer is:
\[
\boxed{P(A \text{ or } B) \approx 0.2778}
\]