Calculating the number of people with both cats and dogs