An animal shelter house ferrets, rabbits and dogs. There are 96 animals at the shelter. Of the animals 1/3 are ferrets. 7/8 of the remaining animals are rabbits. How many are dogs? Show your work.