These animals would have used the claws for both defending themselves from enemies and attacking their preys.
(These animals; would have used; the claws; for both defending themselves from enemies and attacking their preys) (both; defending; themselves; from enemies) (both; attacking; their preys)
These animals both both
would have used defending attacking
the claws for both defending themselves from enemies and attacking their preys
themselves from enemies
their preys