Sam invested a certain amount of money and got back an amount of Rs. 5000. If the bank paid an interest of Rs. 1700, find the amount Sam invested.
An amount of Rs.15000 was invested in bank A and B at simple interest 15% and 10% pa respectively. If the person earned at total of Rs. 5400 as simple interest in 3 years. The amount invested in bank A and B are respectively