You have invested $5000 in stocks and bonds. The interest you earned on the stocks was 7%. The interest you earned on the bonds was 14%. At the end of the year, you earned a total of $500 from your investments. How much money did you invest in the stocks and how much money did you invest in the bonds?