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
#### 315