You can put 1-st coin in any of the two purses. It gives you 2 opportunities. You can put 2-nd coin in any of the two purses. It gives you 2 opportunities. You can put 3-rd coin in any of the two purses. It gives you 2 opportunities. In total, you have 2*2*2 == 8 ways.