The subject of the sentence is the noun'cooks'.
The subject pronoun 'I' is used incorrectly as the direct object of the verb 'were'.
"The cook was me."
"The cooks were Tim and me." (direct object of the verb, use the objective form)
"Time and I were the cooks." (subject of the sentence, use the subjective form)
Chat with our AI personalities