there are 63 animals. 2 are horses .there 5 more chickens than 3 times the pigs. there are 2 less chickens than half pigs times 7

p = pigs

p + c = 61

c = 5 + 3 p

c = (p/2)7 - 2
======================
2 c = 7 p - 4
2 c = 10 + 6 p
so
7 p - 4 = 10 + 6 p
p = 14
c = 47
h = 2
===============
check
total = 63