Let c be the number of cats and let d be the number of dogs.

We know that c = 20 + d and that the total number of animals is c + d = 60

Replacing c gives 20+ d + d = 60 animals

Combining like terms and subtracting 20 from both sides, we get 2d = 40

Dividing both sides by 2, we get d = 40/2 = <<40/2=20>>20

The shelter therefore received 20 + 20 = <<20+20=40>>40 cats

# Answer

40
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Yesterday, the newly opened animal shelter received their first 60 animals. They got 20 more cats than dogs. How many cats did they take in?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
40
Yesterday, the newly opened animal shelter received their first 60 animals. They got 20 more cats than dogs. How many cats did they take in?
train