There is an animal farm where chickens and cows live. All together, there are 46 heads and 134 legs. How many chickens and cows are there on the farm?