Calculating the probability of the intersection of two events