adapt to something + by or not by
Hi my friends,
I have doubts about the following:
People adapt to noisy habitats by living more in the back rooms.
People adapt to noisy habitats living more in the back rooms.
I have read the first one, but thinking in Spanish I would say the second one
Is it possible without changing the meaning of the first sentence?
Thank you