A farmer raises chickens and cows. There are 34 animals in all. The farmer counts 110 legs on these animals. How many of each animal does the farmer have? ​