each horse and person has 1 head
we know that people+horses=74
p+h=74
1 person has 2 legs
1 house has 4 legs
p=number of people
h=number of hourses
number of legs=196
4 times h=number of legs if h hourses
2p=number of legs if p people so
196=2p+4h
divide by 2
98=p+2h
multiply first equation by -1
-p-h=-74
add to current equation
p-p+2h-h=98-74
0p+h=24
there were 24 hourses
subsitute
24+p=74
ssubtract 24
50=p
there were 524 horses and 50 people
the answer is B