A person invested some amount at the rate of 12% simple interest and some other amount at the rate of 10 % simple interest. He received yearly interest of Rs. 130. If he had interchanged the amounts invested he would have received Rs. 4 more as interest. How much amount did he invest at different rates?