Explanation
Since the ratio of cats to dogs is 2:3, we can write:
Number of cats / Number of dogs = 2/3
We know there are 18 dogs, so:
Number of cats / 18 = 2/3
Cross-multiply:
Number of cats = (2/3) × 18
Simplify:
Number of cats = 2 × 6
Number of cats = 12
So, there are 12 cats.