单项选择题

The children()happily when I went to get Christmas presents I()in my car.

A、had played, left
B、were playing, has left
C、had played, had left
D、were playing, had left