In a certain town, the ratio of the number of cats to the number of dogs is 3:5. If the total number of cats and dogs is 128, what is the number of cats in the town?
Let the number of cats be represented by $c$ and the number of dogs be represented by $d$. From the given ratio, we can express this as:
$$ \frac{c}{d} = \frac{3}{5} $$
Using the information about the total number of pets, we also have:
$$ c + d = 128 $$