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

They were beaten by a more aggressive team.

Beat the egg whites.
Answer: different meanings
Question: "pain" used in the same way in the following two sentences?

Your mother is a right pain.

That kid is a terrible pain.
Answer: the same meaning
Question: "shortness" used in the same way in the following two sentences?

The shortness of a stubby pencil.

The patient's shortness of breath.
Answer: the same meaning
Question: "set" used in the same way in the following two sentences?

The country set.

He did four sets of the incline bench press.
Answer:
different meanings