Anna has six pets and plans to give each one a treat
Treats consist of two identical apple slices, along with one banana, one carrot, one mango, and one pear
Rabbit refuses to eat the mango
Parrot refuses to eat the banana
Total number of possible ways without any restrictions = 6! = 720 (6 treats)
Total number of possible ways with 2 identical apple slices = 6!/2! = 360
Lets consider the invalid cases,
Total number of possible ways with 2 identical apple slices with rabbit getting mango I1 = 5!/2! = 60
Total number of possible ways with 2 identical apple slices with parrot getting banana I2 = 5!/2! = 60
Total number of possible ways with 2 identical apple slices with parrot getting banana and rabbit getting mango I3 = 4!/2! = 12
So, to eliminate double counting and get the total invalid cases = I1 + I2 - I3 = 60 + 60 - 12 = 108
Total number of ways possible for the requirement = Total number of possible ways with 2 identical apple slices - Total invalid cases = 360 - 108 = 252
C. 252