two friends a , b 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 4 time , no apples were left . how many apples were there ?