CMIMC 2017 Algebra Problem 1

The residents of the local zoo are either rabbits or foxes. The ratio of foxes to rabbits in the zoo is 2: 3. After 10 of the foxes move out of town and half the rabbits move to Rabbitretreat, the ratio of foxes to rabbits is 13: 10. How many animals are left in the zoo?