a farm has 22 cows and chicken altogether. Each cow has four legs, and each chicken has two legs. The farmer counted 62 legs total. How many cows are on the farm? How many chickens?