Josiah has 3 packs of toy animals. Each 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?