Answer:
have dog Not have dog Total
have cat 4 13 17
not have cat 17 7 24
Total 21 20 41
Explanation:
Total Patrons = 41
20 patrons in total do not have a dog
7 patrons have neither a dog nor a cat.
17 patrons in total have a cat.
have dog Not have dog Total
have cat 17
not have cat 7 24
Total 20 41
Total patrons = 41
Total patrons not have dog = 20
So, Total patrons have dog = 41-20=21
Total patrons not have dog = 20
Patrons have neither a dog nor a cat =7
Patrons have cat but not dog = 20-7 = 13
Total patrons not having cat = 24
Patrons not having cat and not having dog = 7
So, patrons having dog but not having cat =24-7=17
Total patrons have cat = 17
patrons have cat but not dog = 13
So, patrons have cat and dog also = 17-13 =4
So, the required Two way table :
have dog Not have dog Total
have cat 4 13 17
not have cat 17 7 24
Total 21 20 41