In the kitchen, there was a bowl of berries.
When Billy walked by, he took 1/2 of the berries and 2 extra.
Later Bob walked by, and he took 1/3 of what Billy took and 2 extra berries.
Soon Joe walked by, and took 1/3 of what Bob took and then put 1 of those berries back into the bowl.
Sometime afterward, their mom walked by and saw only 1 berry remaining in the bowl.
How many berries were originally in the bowl?