An investor invested his saving in the stock market. The value of his investments increased by 12% and 9% in the first year and the second year respectively. If the value of his investments after two years became Rs 97,664 then how much had he invested (in Rs)?