Heads and Legs Problem
Here you can find the graphic solution to the problem "Heads and Legs" (Taken from http://mathematicscentre.com/taskcentre/014heads.htm)
Check "Heads" to watch posible solutions when you consider just number of heads.
Check "Legs" to watch posible solutions when you consider just number of legs.
Finally, give the solution to the problem.