For bacteria facing a hostile world, the ability to adapt and respond to a changing environment is worth almost any cost, for lacking this ability they would be wiped out.
(bacteria; facing; a hostile world) (they; would be wiped out; ) (the ability to adapt and respond to a changing environment; is; worth almost any cost)
bacteria they the ability to adapt and respond to a changing environment
facing would be wiped out is
a hostile world
worth almost any cost