A man got 12% profit in his investment in tow out of 3 of his companies. If there was a loss of 6% in the third business, in which his investment was 10 lacs then for an overall profit of 8% what will be his total investment in the first 2 companies.