The total number of female hippos is 5/7*35=<<5/7*35=25>>25

If each new hippo gives birth to 5 new baby hippos, the total number of baby hippos will be 5*25=<<5*25=125>>125

The population of hippos after 125 new ones are born is 125+35=<<125+35=160>>160

There are ten more newborn elephants than baby hippos, meaning there are 125+10=135 new baby elephants.

The population of elephants is 135+20=<<135+20=155>>155

Altogether, there are 155+160=<<155+160=315>>315 animals

# Answer

315
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
There are ten more newborn elephants than baby hippos. If an entire herd starts with 20 elephants and 35 hippos, and the female hippos, whose number is 5/7 of the total number of hippos, give birth to 5 new baby hippos each, find the number of animals that are there altogether?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
315
There are ten more newborn elephants than baby hippos. If an entire herd starts with 20 elephants and 35 hippos, and the female hippos, whose number is 5/7 of the total number of hippos, give birth to 5 new baby hippos each, find the number of animals that are there altogether?
train