Funny, this one is a little harder than it looks. I agree with the girl from China. It kind of depends of the meaning you wish to convey.
Let's take a quick look.
Mary loves to shop. (Conversational English) So she'd left work early today and asked her friend to meet her at the mall. The two of them spent eight hours buying dresses and shoes. (Optional and fine is also: The two of them had spent eight hours buying dresses and shoes.)
If I was with another friend and reporting, say over lunch, what Mary and her friend had been doing, I'd say it that way. More technically, the indicative mood, reporting past events of what transpired.
Now let's look at this example: Say I was with another friend and I had heard or observed somehow what Mary was doing, then another way of saying it arises.
I see Mary and her friend are still there shopping, so I turn to my friend and say, "The two of them have spent eight hours buying dresses and shoes.
The last, usually with a rising intonation, as if asking a question to show disbelief, I can say to indicate to my friend that they're still there after eight hours.
Hope that helps. No worries. In conversational English there tends to be more flexibility in how we use our words. That's why we have so many jokes about "play on words."