To find the number of dogs in the shelter, we can use the given ratio of dogs to cats, which is 3:2.
Let the number of dogs be represented as \( d \) and the number of cats as \( c \).
From the ratio, we can express dogs in terms of cats: \[ \frac{d}{c} = \frac{3}{2} \]
We know the number of cats, \( c = 30 \). We can substitute this into the equation: \[ \frac{d}{30} = \frac{3}{2} \]
To solve for \( d \), we can cross-multiply: \[ d \cdot 2 = 3 \cdot 30 \]
This simplifies to: \[ 2d = 90 \]
Now, divide both sides by 2: \[ d = 45 \]
So, there are 45 dogs in the shelter.
Thus, the answer is D) 45.