Farmer John looks out onto his farm and counts 16 heads. The only animals are cows and chicken. He then counts 42 legs in all. How many of each animal does farmer John have?

3 answers

number of cows --- x
number of chickesn ---- 16-x

4x + 2(16-x) = 42

solve for x
x = 5
I don't know could you please help me