If shepherd A gives 8 sheep to sheepherd B , they will have the same amount of sheep. On the other hand , if shepherd B gives 8 sheepnto shepherd A, then A will have twice as many sheep as B. How many sheep does each shepherd have ?​