B. Sandra was thought to have been living in Dubai for 3 years.
Feedback Passive Infinitive helps us construct sentences more gracefully and rationally. Also it is better to choose to-infinitive in order to avoid mentioning pronoun agents like 'we, they, all, everybody, etc.' Here we use the Perfect Infinitive after the reporting phrase 'was thought': [to + have+been+Past Participle]