You have that 3/16 of the animals are dogs and 5/24 of the animals are cat.
To determine the fraction of animals that are neither dogs nor cat, consider the following:
If 3/16 are dogs, then 13/16 are other animals, but from this fraction, 5/24 are cats. Then, the subtraction 13/16 - 5/24 results in the fraction of animals that are neither dogs nor cat:
simplify the last fraction:
Hence, 29/48 of the animal are neither dogs nor cats