both are correct "was" is infromal and is used in spoken english were" is formal and used in written english However, if it's an exam question it's better to go for "were" as the answer Now to answer "why".. I am afraid i don't have an answer to that . that's how english lanuage works.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.