Answer :
[tex]x-\ money\ that\ each\ of\ them \ had\ previously\\\\
4(x-58)=x-37\\\\
4x-232=x-37\ \ \ | subtract\ x\\\\
3x-232=-37\ \ \ | add\ 232\\\\
3x=195\ \ \ | divide\ by\ 3\\\\
x=65\\\\
Each\ of\ them\ had\ 65\$\ at\ the\ beginning.[/tex]