On Wednesday there are 22 cats at the shelter.
Explanation:
Let c= cats and d=dogs on Wednesday, from the given question,
c + d = 29 as equation (i)
1.5c + 3.5d = 57.50 as equation (ii)
By solving (i) and (ii)
(c + d =29) × 1.5 = 1.5c + 1.5d = 43.5
(1.5c + 3.5d = 57.50) × 1 = 1.5c + 3.5d = 57.50
By solving we get d = 7
For c substitute the c value of d into 1.5c + 3.5d = 57.50
1.5 c + 3.5 (7) = 57.50
1.5c + 24.5 = 57.50

We get c = 22, d = 7
Therefore, we came to know that there were 22 cats and 7 dogs.