Read the passage below and solve the questions based on it.
Three persons, Anny, Berry and Cherry, started playing a game. They had money in the ratio of 3:2:1. It was decided that if Anny lost the game he would distribute 1/4th of the money that he had prior to the round, equally between Berry and Cherry. If Berry lost the game he would distribute half of his money equally between Anny and Cherry and if Cherry lost the game he would distribute 2/3rd of his money prior to that round equally between Anny and Berry. Berry lost the game first, and then Cherry lost the next game followed by Anny and then followed by Berry again. In the process Anny gained Rs 10.
What was the total sum of money they had initially?