Question: "wave" used in the same way in the following two sentences?

A wave of settlers.

Troops advancing in waves.
Answer: the same meaning
Question: "replace" used in the same way in the following two sentences?

We need to replace the secretary that left a month ago.

He replaced the old razor blade.
Answer: the same meaning
Question: "wall" used in the same way in the following two sentences?

Competition was pushing them to the wall.

The wind blew against the walls of the tent.
Answer: different meanings
Question: "take" used in the same way in the following two sentences?

Do you take me for a fool?

How should I take this message?
Answer:
the same meaning