"Was" and "were" are past tense forms of the verb "to be." They are used to indicate that something happened or existed in the past. However, they are used in different situations based on the subject of the sentence:
"Was" is the past tense form of "is" and is used with the singular subject:
Example: "He was happy yesterday."
In this sentence, "he" is the singular subject, and "was" is used to indicate that he was happy in the past.
"Were" is the past tense form of "are" and is used with plural subjects, as well as with the pronouns "you," "we," and "they":
Example 1: "They were late for the meeting."
In this sentence, "they" is the plural subject, and "were" is used to indicate that they were late in the past.
Example 2: "You were kind to me."
Here, "you" is the pronoun used as the subject, and "were" is used to indicate that the person addressed was kind in the past.
It's important to note that "was" is also used with the singular pronouns "he," "she," and "it":
Example: "She was excited about the trip."
In this case, "she" is the singular subject, and "was" is used to indicate that she was excited in the past.
It's worth mentioning that these are general rules, but there can be exceptions and variations in specific contexts or dialects.