There are 49 heads and 100 feet in the same cage? (solved by equation)

There are 49 heads and 100 feet in the same cage? (solved by equation)

Suppose there are x chickens, then there are 49-x rabbits