Tara paid one-half of the lottery winnings to government for taxes. She invested one-third of the winnings in Jenna's Gift Shop at 14% interest and one-sixth of the winnings in Sam's Body Shop at 12% interest. If she earned the total of $4000 on two investments in 1 year, then how much she won in lottery?