A man had Rs 1000 which he invested in two schemes. The first scheme offered an interest of 6% and the second scheme offered an interest of 9%. If the simple interest he received from both the schemes at the end of the year are equal, how much did he invest in the second scheme?