Q: Does "formation" have the same meaning in the following two sentences?

A formation of planes.

A defensive formation.

A: the same meaning

Q: Does "cost" have the same meaning in the following two sentences?

The average cost of a new house is twice as much as t was 20 years ago.

The cost in human life was enormous.

A: different meanings

Q: Does "interest" have the same meaning in the following two sentences?

In the interest of safety.

In the common interest.

A:
the same meaning