Vic invested part of the 40,000 bonus that he received at 8%. The remainder was invested at 10%. If after 2 years, the earning from 8% investment is 1.2 times his earnings from 10% investment, how much was invested at each rate?