Considering the following sentence, select the correct alternative to fulfill out the lines:
The apartment __________ (To Belong) to Mary for 5 years before she _________ (To Sell) it.
A) Had belonged / sold.
B) Belonged / sold.
C) Had been belonging / sold.
D) Belong / Sell.
E) Had belonged / had sold.