What does etymology study?

The cultural traditions, like celebrations and food, of early civilizations
The history of words and how their meanings have changed over time
The methods writers use to create a specific mood in a piece of literature
The way sentences are put together in a certain way for impact

The history of words and how their meanings have changed over time.