Answer:
5 chickens, 20 goats
Explanation:
We can set up two equations and use substitution
There are 25 total goats and chickens, so

Goats have 4 feet and chickens have two, so

By solving for G in the first equation,

We can now use substitution,

We have 5 chickens, so we have 20 goats.
Let's double check:

It checks out!