Example 3. Two dice are rolled, and the sum of the points on the upper faces is calculated. Find the probability of event $B$, which consists of the sum of the points on the upper faces of the dice being 9.