a;lkjnofihb is right, it's 7 :thumbsup:
first man buys half (3,5) and another half, so he buys four pies in total
second man buys half of the remainder three + another half so he buys 1,5+0,5=2 pies
there's one pie left, the third man buys half of it + another half = that remainder pie