The concept of Ratios and shares.
let there be a common multiple 'x' for this ration, hence
5x + 7x + 3x = total money
here, 3x = $ 237
hence, x = $237/3 ==> $79
x = $ 79
hence now the total money that was shared =>
==> 5(79) + 7(79) + 3(79)
==> 395 + 553 + 237
==> $ 1185
The total money shared was $ 1185