add the two deposited amounts to the first total of 5170 to give you 6246. you know they have an equal amount of money, so divide that by 2 to give the amount for each person (3123). then solve from there using what you know. x will be mr and y will be mrs
x+450=3123 subtract 450 and you have 2673
y+626=3123 subtract 626 and you have 2497
so Mr had 2673 and Mrs had 2497