Hi, just need to know if both sentences are correct of first one is incorrect due to the use of buy instead bought:
Sentence 1:
When we went to the bookstore last night, we buy a book about engineering.
Sentence 2:
When we went to the bookstore last night, we bought a book about engineering.
Thanks in advance