A farmer has hens and rabbits. These animals have 50 heads and 140 feet. How many hens and how many rabbits does that farmer have?