we know 140 is 5% of some number x. to find x, we use this formula: 140/x = 5/100
cross multiply: 14000 = 5x
divide each side by 5: 2800
they had $2800 in their account.