For the city of Charlotte, these are the probabilities:
Cat: 33.7%
Dog Lhasa Apso: 3.25%
Dog Mastiff: 3.17%
Dog Chihuahua: 2.89%
Dog Collie: 3.33%
Since the selected pet is a dog, the only possibilities are it is a Lhasa Apso, a Mastiff, a Chihuahua, or a Collie.
Therefore, applying the Bayes theorem, we know that the probability that it is a Chihuahua is:
P(Chihuahua|Dog) = [P(Dog|Chihuahua)*P(Chihuahua)]/P(Dog)
P(Dog|Chihuahua) = 100% = 1
P(Chihuahua) = 2.89% = 0.0289
P(Dog) = 3.25% + 3.17% + 2.89% + 3.33% = 12.64% = 0.1264
P(Chihuahua|Dog) = 0.0289/0.1264 = 0.2286 = 22.86%