In a zoo there are 30 monkeys, some gorillas and chimpanzees. The ratio of monkeys to gorillas is 6 to 1. The ratio of monkeys to chimpanzees is 5 to 2. How many gorillas are there? How many chimpanzees are there?