Josiah has 3 packs of toy animals. eac pack has the same number of animals. josiah gives 6 animals to his sister stephanie. then josiah has 9 animals left. how many animals were in each pack?