A sum of money was shared between Larry and Barry in the ratio 3: 5. Larry  received $4 161. How much money was shared altogether? ​