In May, Liam and Charlie had the same amount of money in their savings accounts. In June, Liam deposited $140 into his account. Charlie said he increased the money in his account by 5%. When they compared their balances, they found that they were still equal.

How much money did they both have in their accounts in May?

Enter your answer in the box.