Two shepherds, each with their own flocks, sit down to rest together under a tree. One says to the other, "Look! If you were to give me one of your sheep, we would then have the exact same amount!"
The other shepherd says, "Yes, but if you were to give me one of your sheep, I would then have twice as many as you!"
How many sheep did each shepherd originally have?
Updated by Snowy