Mr. X invested a certain amount in debt and equity funds in the ratio of 4 : 5. At the end of one year, he earned a total dividend of 30% on his investment. After one year, he reinvested the amount including the dividend in the ratio of 6 : 7 in debt and equity funds. If the amount reinvested in equity funds was Rs. 94500, what was the original amount invested in equity funds?