A farmer has both cows and chickens. He keeps track
of them by counting legs and heads. If he counts 78
legs and 35 heads, how many chickens does he have?