112 elephants
21 ants
Explanation:
E= number of elephants
a=number of ants
the second sentence creates the relatiknship
E=7(a-5)
e=7a-35
the number of legs also allows for the equation
4 (elephants legs)×E + 6 (ant legs) × a=574
the first equation can become
(e-7a=-35) ×4
4e-28a=-140
minus second equation of the first eliminating
4e+6a=574
-34a=-714
a=21
input in first equation
(21-5)×7=e
e=112
I couldnt really unserstand the second sentence and it is unrealistic