To calculate the probability of getting a sum of 7 or 9 when two dice are thrown, we need to consider the possible outcomes for each die. Each die has 6 faces, so there are a total of \( 6 \times 6 = 36 \) possible outcomes when two dice are thrown.
Now, let's find the number of favorable outcomes for each case:
In total, the number of favorable outcomes is \( 6 + 4 = 10 \).
The probability of getting a sum of 7 or 9 is given by the formula:
\(\text{Probability} = \frac{\text{Number of favorable outcomes}}{\text{Total possible outcomes}}\)
Thus, the probability is:
\(\frac{10}{36} = \frac{5}{18}\)
Therefore, the correct answer is \(\frac{5}{18}\).