Jane took out $5,000 from her savings account which paid 2% interest and invested it in a stock paying 8%. If the total interest from both the remaining savings account money and the stock amounted to $580 for a year, how much was originally in the savings account?