Answer-
There are 8 crocodiles and 32 alligators.
Solution-
Let's assume,
number of crocodiles = x, so number of alligators = 4x
As the total number of alligators and crocodiles is 40, so
[tex]\Rightarrow x+4x=40[/tex]
[tex]\Rightarrow 5x=40[/tex]
[tex]\Rightarrow x=\dfrac{40}{5}[/tex]
[tex]\Rightarrow x=8[/tex]
[tex]\Rightarrow 4\times x=4\times 8[/tex]
[tex]\Rightarrow 4x=32[/tex]
So, there are 8 crocodiles and 32 alligators.