* Verb: "They shared their toys." Here, "shared" is the action being performed.
* Adjective: "We have a shared interest in music." Here, "shared" describes the noun "interest."
* Past participle: "The shared resources were depleted." Here, "shared" acts as a modifier, describing the "resources."
To determine the part of speech, you need to look at the context of the sentence.