A certain sum of money is shared among Ana, Bert and Dan in the ratio 5:7:3. If Dan Gets 45 pesos. How much is the total amount?