Multi-choice problem: does word "formation" have the same meaning in the following two sentences?

The formation of memories.

The formation of sentences.

Available options:
[1]. different meanings
[2]. the same meaning
[2].