The ratio between the number of cats (c) and the number of dogs (d) in the shelter is 3. There are 27 cats in the shelter. How many dogs are in the shelter?