Let's solve this problem step by step. Let's assume the number of octopuses in the zoo is "x" and the number of goats is "y". According to the given information, we know that: - Octopuses have 8 legs each, so the total number of octopus legs is 8x. - Goats have 4 legs each, so the total number of goat legs is 4y. - The total number of octopuses and goats is 18, so we have the equation: x + y = 18. - The total number of legs is 96, so we have the equation: 8x + 4y = 96. Now, we can solve these two equations simultaneously to find the values of x and y. From the first equation, we can express x in terms of y: x = 18 - y. Substituting this value of x into the second equation, we get: 8(18 - y) + 4y = 96. Simplifying the equation, we have: 144 - 8y + 4y = 96. Combining like terms, we get: -4y = -48. Dividing both sides by -4, we find: y = 12. Therefore, there are 12 goats in this zoo.