Shashi had a sum of money. Two-thirds of the total money he invested in scheme A for 6 years and rest of the money he invested in scheme B for 2 years. Scheme A offers a simple interest at the rate of 12% per annum and scheme B offers a compound interest (compounded annually) at the rate of 10% per annum. If the total sum obtained from both the schemes is Rs 2805. What was the total amount invested by him in scheme A and scheme B together?