The probability formula is defined as the possibility of an event to happen is equal to the ratio of the number of outcomes and the total number of outcomes.
To find the probability that a randomly selected day is one when she drank exactly 1 cup of coffee is given by
the outcome of getting one cup = 6 + 2 = 8
total number of outcome = 6 + 2 + 5 + 5 = 18
The probability that she sleeps exactly 6 hours is given by the formula