Which of the following describes what synonyms must have in common

They must be nouns

They must sound the same

They must mean different things

They must be the same part of speech

They must be the same part of speech