A person invested some amount at the rate of 12% simple interest and the remaining at 10%. He received yearly an interest of Rs 130. Had he interchanged the amounts invested, he would have received an interest of Rs 134. How much money did he invest at different rates?