Answer: there were 16 buffalos and 23 peacocks.
Explanation:
Let x represent the number of Buffaloes.
Let y represent the number of peacocks.
A Buffalo has 2 eyes while a peacock has 2 eyes. If the Buffalo and the peacock has 78 eyes in total, then
2x + 2y = 78
Dividing both sides of the equation by 2, it becomes
x + y = 39
x = 39 - y
A Buffalo has 4 legs while a peacock has 2 legs. If the Buffalo and the peacock has 110 in total, then
4x + 2y = 110- - - - - - - - - - - - 1
Substituting x = 39 - y into equation 1, it becomes
4(39 - y) + 2y = 110
156 - 4y + 2y = 110
- 4y + 2y = 110 - 156
- 2y = - 46
y = - 46/- 2
y = 23
x = 39 - y = 39 - 23
x = 16