Creatures with Four or Six Heads

Now there are six-headed four legged animals and four-headed two-legged birds. A count of these creatures gives 76 heads and 46 legs. Find the number of animals and birds.

Sunzi suan jing (Mathematical Classic of Master Sun), Sunzi, c. 400 CE

Click here to reveal the answer