Also, was can be used for second-person subjects like he, she, it.
The past continuous tense interrogative sentence structure Note: we can use question words what, where, when, why, how before the auxiliary verb.
B I was going to the store when I saw him.