Answer:
26 kangaroos on the farm
32 goats on the farm
Step-by-step explanation:
To find the number of goats and kangaroos on the farm, we need to determine the number of legs each animal has. Let's say that there are 'g' goats and 'k' kangaroos.
Since each goat has 4 legs, the total number of legs for all the goats is 4g. Similarly, since each kangaroo has 2 legs, the total number of legs for all the kangaroos is 2k.
Adding these two quantities, we have:
4g + 2k = 180
Since each goat has 1 head, the total number of heads for all the goats is g. Similarly, since each kangaroo has 1 head, the total number of heads for all the kangaroos is k.
Adding these two quantities, we have:
g + k = 58
Now, we have two equations and two unknowns. To solve for 'g' and 'k', we can use substitution or elimination method.
Let's use substitution method:
From the second equation, we can find g:
g = 58 - k
Substituting this in the first equation, we get:
4(58 - k) + 2k = 180
Expanding and solving, we get:
232 - 4k + 2k = 180
232 - 2k = 180
-2k = -52
k = 26
So, there are 26 kangaroos on the farm. To find the number of goats, we can use the first equation:
g = 58 - k = 58 - 26 = 32
Therefore, there are 32 goats on the farm.