Thomas deposited 7000 rupees in all in two banks. The rate of interest is 8% in one bank and 11% in the other. After a year, he got 680 rupees as interest from both banks together. How much did he deposit in each bank?