Sand lays in two piles, and in the first pile there is 3 times more sand than in the second. After 20 tons of sand was taken from the first pile, and 10 tons were brought in
the second, in both piles the amount of sand became equal. How many tons of sand
were in the two piles initially?