Max offered to help Dan decorate his room. When he got there, Dan _______________ (paint) for over two hours already
a. is painting
b. has painted
c. was painting
d. had painted