a farm raises cows and chickens. the farmer has a total of 42 animals. one day he counts the legs of all animals of his animals and realizes he has a total of 114. how many cows does the farmer have? how many chickens?