Manish borrowed some amount from a bank at the rate of 4% per annum compounding yearly. He lent the whole amount to Anish at 6% per annum compound interest compounded half yearly. If at the end of the year Manish gained Rs. 104.50, find the amount that he borrowed from the bank. (Ans: Rs. 5000)​