Therefore, the past perfect tense needs to be used as the name suggests past perfect tense is a part of the perfect tense and thus indicates completed actions.
Convert the object of Active Voice Sentence into the subject of the Passive Voice Sentence. Use helping verb was/were according to subject of the Passive Voice sentence.