She _______ her homework for two hours before she went out. A. Has done B. Had done C. Did D. Was doing