# Task 2.

Sasha, Pasha, and Arkasha are virtual businessmen. Sasha transferred to Pasha exactly the number of bitcoins Pasha had. After that, Sasha transferred to Arkasha exactly the number of bitcoins Arkasha had. Then, Pasha transferred to both Sasha and Arkasha the exact number of bitcoins each of them had before this operation. Finally, Arkasha transferred to both Sasha and Pasha the exact number of bitcoins each of them had as a result of the previous actions. After all these transactions, each of them ended up with 8 bitcoins. Find the initial number of bitcoins each had.
# Solution

Since Sasha and Pasha ended up with 8 bitcoins each, before the last transfer, Sasha and Pasha each had 4 bitcoins. Therefore, before the second exchange, Sasha had 2 bitcoins, and Arkasha had 8. This means Pasha had 14 bitcoins (4+2+8=14). Consequently, Pasha originally had 7 bitcoins, Arkasha had 4 bitcoins, and Sasha had 13 bitcoins.

Answer: Pasha has 7, Arkasha has 4, and Sasha has 13.