Rule reminder
Essere verbs: participle agrees with the clause's own subject. Avere verbs: participle agrees with the direct object.
Which sentence is correct?