You are a cab driver who pools passengers. You pick 3 people from a destination and drop 1 after an hour. 2 people climb aboard at the same time and you drop 3 at the next destination. After some time, you pick 2 passengers only to drop 1 after a short distance where 3 more passengers climb up the cab. You leave the rest of the passengers one by one to their destination and then come back home.
John gave half of the apples he had plus one more to Jacob. He gave half of the remaining ones plus one more to James. Now, John was left with just one apple.
Can you find out how many did he have in the beginning?