Answer:
3 cats
Explanation:
Let the initial number of dogs = number of cats = x
Number of pets = x + x = 2x
8 dogs and 41 cats joined the party
Number of dogs after the new arrivals = 8 + x
Number of cats after the new arrivals =
Total number of pets after new arrivals = 8 + x + 41 + x
= 49 + 2x
Ratio of cats to dogs after new arrivals

Cross multiplying denominator with 4 on the right side:

So initially there were 3 cats (and also 3 dogs) at the party