Correct option is D
Explanation:
The subject “Everyone” is a singular indefinite pronoun, so it requires a singular helping verb, i.e., was, not were.
Also, “was trying” is the past continuous tense, appropriate for an ongoing action in the past.
Grammatical rule used:
Indefinite pronouns like everyone, everybody, each, someone are always singular and take singular verbs.
Example: Everyone was dancing at the party.
Incorrect: Everyone were dancing.
Information booster:
Don't get confused by the meaning of “everyone” implying multiple people; it is grammatically singular.