Devi and Deva started the business with the investment in the ratio of 12:7 and the ratio of the investment period of Devi and Deva is x:6. At the end of the business, the profit share of Devi is Rs.1300 less than Deva and the total profit of the business is Rs.16900, then find the value of x?