A Basket Case

Rabbits and pheasants are put in a basket.  The top of the basket shows 35 heads and the bottom shows a total of 94 feet.  How many of each animal are in the basket?

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

Click here to reveal the answer