Lydia inherited a sum of money. She split it into five equal parts. She invested three parts of the money in a high-interest ban
k account which added 10% to the value. She placed the rest of her inheritance plus $500 in the stock market but lost 20% on that money. If the two accounts end up with exactly the same amount of money in them, how much did she inherit?