I believe it is "had bought" bought is past, but "had bought" is perfect past
8.8m questions
11.4m answers