Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: in a certain pet shop , the ratio of dogs to cats to bunnies in stock is 4 : 7 : 9 . if the shop carries 364 dogs and bunnies total in stock , how many dogs are there ?
