what is the algebraic formula for this problem. A farmer has hens and rabbits. They have a total of 50 heads and 140 feet. How many hens and how many rabbits does the farmer have? I know the answer is 20 rabbits and 30 hens. I need the algebraic formula. Can you help?