If we take the number of Zebras to be x and that of peacocks to be y Then x + y = 14 A zebra has 4 legs while a peacock has 2 legs, Therefore the total number of legs will be 4x + 2y which is equal to 36 . Therefore, we have two equations x + y = 14 4x + 2y = 36 solving them simultaneously using elimination
4x +2y = 36 2x + 2y = 28 ( multiplying the first equation by 2 to eliminate y) 2x = 8 ( subtracting the equations) x = 4 y = 14 -(4) = 10 Therefore, there are 4 zebras and 10 peacocks in the zoo