Farmer Joe has pigeons and sheep on his farm. He has a total of 16 animals and can count 40 legs. How many pigeons and how many sheep does he have? (awnsered in and ordered pair)(solved by elimination,or sub)