4 friends a , b , c and d decided to share a lot of apples . each of them had half of the total plus half an apple in order . after each of them took their share 3 time , no apples were left . how many apples were there ?