Sumit, Punit, and Ramit started a business by investing their capitals in the ratio of 1:2:3. At the end of the business term, they received their shares of profit in the ration of 1:2:3. Find out the ratio of time for which they invested their capitals?