Answer:
Mary, whose dog passed away last week, was at the shelter looking for a new pet.
Step-by-step explanation:
Put commas after "Mary" and after the clause "whose dog passed away last week". The commas separate the subject and the clause from the rest of the sentence.